Change build selector - 6.2 training
This commit is contained in:
parent
33695102fb
commit
32a9423915
@ -1,10 +1,15 @@
|
||||
pipeline {
|
||||
agent {dockerfile true}
|
||||
|
||||
parameters {
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR')
|
||||
}
|
||||
stages {
|
||||
stage('copyArtifacts') {
|
||||
steps {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's434684-create-dataset', selector: latestSuccessful(true)
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's434684-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
}
|
||||
}
|
||||
stage('Sh script') {
|
||||
|
Loading…
Reference in New Issue
Block a user