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