2024-03-26 22:07:25 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
parameters {
|
|
|
|
choice(name: 'BUILD_SELECTOR', choices: '', description: 'Which build to use for copying artifacts')
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Copy artifacts') {
|
|
|
|
steps {
|
|
|
|
script {
|
2024-03-26 22:09:35 +01:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464906-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
2024-03-26 22:07:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Run shell script') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
sh './calculate_stats.sh'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|