update do zadania 2 z lab 06

This commit is contained in:
Norbert Walkowiak 2023-06-08 12:04:06 +02:00
parent c8ea52a77f
commit 00451aa2e2

View File

@ -8,6 +8,12 @@ pipeline{
defaultValue: 'master',
description: 'Select the branch of training'
)
buildSelector(
name: 'BUILD_SELECTOR',
description: 'Which build to use for copying artifacts',
defaultSelector: lastSuccessful()
)
}
stages{
@ -23,7 +29,7 @@ pipeline{
copyArtifacts(
projectName: myProject,
fingerprintArtifacts: true,
selector: [$class: 'SpecificBuildSelector', buildNumber: "lastSuccessfulBuild"]
selector: buildParameter('BUILD_SELECTOR')
)
}
}