fixed Jenkinsfile
This commit is contained in:
parent
acda08e0bd
commit
07d14666ba
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user