From 512abf54fcfd7102942a0a48abc7ec79b9b23bb9 Mon Sep 17 00:00:00 2001 From: Norbert Walkowiak Date: Thu, 8 Jun 2023 11:59:30 +0200 Subject: [PATCH] update do zadania 2 z lab 06 --- Jenkinsfile-evaluation | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile-evaluation b/Jenkinsfile-evaluation index 46363ff..cbe47a5 100644 --- a/Jenkinsfile-evaluation +++ b/Jenkinsfile-evaluation @@ -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,