Update Jenkinsfile

This commit is contained in:
s464906 2024-03-26 23:02:02 +01:00
parent 8c9e0a8381
commit 369777ee87

67
Jenkinsfile vendored
View File

@ -1,30 +1,37 @@
pipeline { pipeline {
agent any agent any
stages { parameters {
stage('Clone repository') { string(
steps { defaultValue: '10000',
checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s464906/ium_464906']]]) name: 'CUTOFF',
} description: 'Liczba wierszy do obcięcia ze zbioru danych')
} }
stage('Set execute permission') {
steps { stages {
script { stage('Clone repository') {
sh 'chmod +x data_processing.sh' steps {
} checkout([$class: 'GitSCM', branches: [[name: '*/master']], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s464906/ium_464906']]])
} }
} }
stage('Run shell script') { stage('Set execute permission') {
steps { steps {
script { script {
sh './data_processing.sh' sh 'chmod +x data_processing.sh'
} }
} }
post { }
success { stage('Run shell script') {
archiveArtifacts artifacts: 'results.txt', allowEmptyArchive: true steps {
} script {
} sh './data_processing.sh'
} }
} }
} post {
success {
archiveArtifacts artifacts: 'results.txt', allowEmptyArchive: true
}
}
}
}
}