From 5f0bf0448a8bafbbac57bbeb86bda0a2db163cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pokrywka?= Date: Fri, 6 May 2022 22:32:37 +0200 Subject: [PATCH] test parameters --- evaluation.Jenkinsfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/evaluation.Jenkinsfile b/evaluation.Jenkinsfile index 72a7623..997de89 100644 --- a/evaluation.Jenkinsfile +++ b/evaluation.Jenkinsfile @@ -18,12 +18,10 @@ pipeline { } stage('bash script') { steps { - withEnv(["BRANCH=${params.BRANCH}"]) { - copyArtifacts filter: '*', projectName: 's444463-training/$BRANCH' - copyArtifacts filter: '*', projectName: 's444463-create-dataset' - sh 'python3 ./evaluation.py' - archiveArtifacts artifacts: "metrics.txt" "metrics.png" - } + copyArtifacts filter: '*', projectName: 's444356-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR') + copyArtifacts filter: '*', projectName: 's444463-create-dataset' + sh 'python3 ./evaluation.py' + archiveArtifacts artifacts: "metrics.txt" "metrics.png" } } }