update do zadania 2 z lab 06
This commit is contained in:
parent
c8ea52a77f
commit
00451aa2e2
@ -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')
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user