From 07d14666ba9ecc64ace5aa2432a7f1f68d6debf8 Mon Sep 17 00:00:00 2001 From: s464906 Date: Tue, 26 Mar 2024 21:59:56 +0100 Subject: [PATCH] fixed Jenkinsfile --- Jenkinsfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4be7865..ea65091 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,18 +4,24 @@ pipeline { stages { stage('Clone repository') { steps { - checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s464906/ium_464906.git']]]) + checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s464906/ium_464906']]]) + } + } + stage('Set execute permission') { + steps { + script { + sh 'chmod +x data_processing.sh' + } } } stage('Run shell script') { steps { script { - chmod +x data_processing.sh sh './data_processing.sh' } } post { - always { + success { archiveArtifacts artifacts: 'results.txt', allowEmptyArchive: true } }