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