update do zadania 2 z lab 06
This commit is contained in:
parent
c690d832ad
commit
512abf54fc
@ -14,7 +14,12 @@ pipeline{
|
||||
stage('Copy model artifacts with test dataset') {
|
||||
steps {
|
||||
script {
|
||||
def myProject = "z-s487175-training/master"
|
||||
// Biblioteka w Jenkis automatycznie dopisuje origin przed nazwą brancha
|
||||
// dlatego wprowadziłem poniższe przekształcenie
|
||||
def branchName = params.BRANCH ?: 'master'
|
||||
branchName = branchName.replaceFirst('/origin/', '')
|
||||
|
||||
def myProject = "z-s487175-training/${branchName}"
|
||||
copyArtifacts(
|
||||
projectName: myProject,
|
||||
fingerprintArtifacts: true,
|
||||
|
Loading…
Reference in New Issue
Block a user