From 1b097d9e96b96e2c26e485d75ff40a5adaecca44 Mon Sep 17 00:00:00 2001 From: Norbert Walkowiak Date: Thu, 8 Jun 2023 10:51:51 +0200 Subject: [PATCH] update do zadania 2 z lab 06 --- Jenkinsfile-evaluation | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile-evaluation b/Jenkinsfile-evaluation index 71c9ce3..47573c7 100644 --- a/Jenkinsfile-evaluation +++ b/Jenkinsfile-evaluation @@ -10,18 +10,17 @@ pipeline{ ) } - permissions { - artifactPermission('z-s487175-training', 'job:z-s487175-training:copy') - } - stages{ stage('Copy model artifacts with test dataset') { steps { - copyArtifacts( - projectName: 'z-s487175-training', - fingerprintArtifacts: true, - selector: [$class: 'SpecificBuildSelector', buildNumber: "lastSuccessfulBuild"] - ) + script { + def myProject = "z-s487175-training/${params.BRANCH}" + copyArtifacts( + projectName: myProject, + fingerprintArtifacts: true, + selector: [$class: 'SpecificBuildSelector', buildNumber: "lastSuccessfulBuild"] + ) + } } }