ium_464906/Jenkinsfile-stats

30 lines
776 B
Plaintext
Raw Normal View History

pipeline {
agent any
parameters {
choice(name: 'BUILD_SELECTOR', choices: '', description: 'Which build to use for copying artifacts')
}
stages {
stage('Copy artifacts') {
steps {
script {
copyArtifacts fingerprintArtifacts: true, projectName: 's464906-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
}
stage('Run shell script') {
steps {
script {
sh './calculate_stats.sh'
}
}
post {
success {
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
}
}
}
}
}