Change build selector - 6.2 training

This commit is contained in:
Zofia Galla 2021-05-02 17:36:11 +02:00
parent 33695102fb
commit 32a9423915

View File

@ -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') {