diff --git a/Jenkinsfile-stats b/Jenkinsfile-stats index e4eddd2..60d15e1 100644 --- a/Jenkinsfile-stats +++ b/Jenkinsfile-stats @@ -1,9 +1,19 @@ pipeline { agent any - parameters { - choice(name: 'BUILD_SELECTOR', choices: '', description: 'Which build to use for copying artifacts') - } + 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') {