2023-04-14 23:55:01 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
parameters {
|
2023-04-14 23:58:41 +02:00
|
|
|
choice(
|
|
|
|
name: 'BUILD_SELECTOR',
|
|
|
|
choices: ['lastSuccessfulBuild()', 'lastStableBuild()', 'specificBuild(123)', 'tags(\'release-*\')'],
|
2023-04-14 23:55:01 +02:00
|
|
|
description: 'Which build to use for copying artifacts',
|
2023-04-14 23:58:41 +02:00
|
|
|
defaultValue: 'lastSuccessfulBuild()'
|
2023-04-14 23:55:01 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Copy artifacts') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
copyArtifacts(
|
|
|
|
projectName: 'z-s487179-create-dataset',
|
|
|
|
selector: "${params.BUILD_SELECTOR}"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|