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') {
|
stage('Copy model artifacts with test dataset') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
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(
|
copyArtifacts(
|
||||||
projectName: myProject,
|
projectName: myProject,
|
||||||
fingerprintArtifacts: true,
|
fingerprintArtifacts: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user