ium_464906/Jenkinsfile-stats

40 lines
997 B
Plaintext
Raw Normal View History

pipeline {
agent any
2024-03-26 22:36:09 +01:00
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
string(
defaultValue: '1000',
description: 'CUTOFF',
name: 'CUTOFF',
trim: false
)
}
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')
}
}
}
stage('Run shell script') {
steps {
script {
sh './calculate_stats.sh'
}
}
post {
success {
archiveArtifacts artifacts: 'stats.txt', allowEmptyArchive: true
}
}
}
}
}