This commit is contained in:
Norbert Walkowiak 2023-04-16 08:19:21 +02:00
parent cecf748d99
commit 26e0c14a79

View File

@ -1,5 +1,12 @@
pipeline {
agent any
parameters {
buildSelector(
name: 'BUILD_SELECTOR',
description: 'Which build to use for copying artifacts',
defaultSelector: 'lastSuccessful()'
)
}
stages {
stage('Checkout git clone') {
steps {
@ -11,7 +18,7 @@ pipeline {
copyArtifacts(
projectName: 'z-s487175-create-dataset',
fingerprintArtifacts: true,
selector: lastSuccessful()
selector: buildParameter('BUILD_SELECTOR')
)
}
}