fixed Jenkinsfile

This commit is contained in:
s464906 2024-03-26 21:59:56 +01:00
parent acda08e0bd
commit 07d14666ba
1 changed files with 9 additions and 3 deletions

12
Jenkinsfile vendored
View File

@ -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
}
}