ium_464906/Jenkinsfile

31 lines
826 B
Plaintext
Raw Normal View History

2024-03-26 20:03:44 +01:00
pipeline {
2024-03-26 20:11:18 +01:00
agent any
stages {
stage('Clone repository') {
steps {
2024-03-26 21:59:56 +01:00
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'
}
2024-03-26 20:11:18 +01:00
}
}
stage('Run shell script') {
steps {
script {
2024-03-26 21:51:34 +01:00
sh './data_processing.sh'
2024-03-26 20:11:18 +01:00
}
}
post {
2024-03-26 21:59:56 +01:00
success {
2024-03-26 20:11:18 +01:00
archiveArtifacts artifacts: 'results.txt', allowEmptyArchive: true
}
}
}
}
}