fixed Jenkinsfile

This commit is contained in:
s464906 2024-03-26 21:59:56 +01:00
parent acda08e0bd
commit 07d14666ba

12
Jenkinsfile vendored
View File

@ -4,18 +4,24 @@ pipeline {
stages { stages {
stage('Clone repository') { stage('Clone repository') {
steps { 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') { stage('Run shell script') {
steps { steps {
script { script {
chmod +x data_processing.sh
sh './data_processing.sh' sh './data_processing.sh'
} }
} }
post { post {
always { success {
archiveArtifacts artifacts: 'results.txt', allowEmptyArchive: true archiveArtifacts artifacts: 'results.txt', allowEmptyArchive: true
} }
} }