From 25a8da5c2ecc42aa4a773a86013f2c1bdfee6e5e Mon Sep 17 00:00:00 2001 From: s444417 Date: Sat, 7 May 2022 11:05:23 +0200 Subject: [PATCH] fix apram branch --- Jenkinsfile.eval | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.eval b/Jenkinsfile.eval index 0e4508c..3cfd378 100644 --- a/Jenkinsfile.eval +++ b/Jenkinsfile.eval @@ -3,7 +3,11 @@ pipeline { dockerfile true } parameters{ - gitParameter branchFilter: 'origin/(.*)', defaultValue: 'main', name: 'BRANCH', type: 'PT_BRANCH' + string( + defaultValue: 'master', + description: 'training branch name', + name: 'TRAINING_BRANCH' + ) buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', @@ -31,7 +35,7 @@ pipeline { stage('Copy') { steps { copyArtifacts projectName: 's444417-create-dataset' - copyArtifacts projectName: 's444417-training/${params.BRANCH}' + copyArtifacts projectName: 's444417-training/$TRAINING_BRANCH' sh 'python3 ./src/evalScript.py' archiveArtifacts 'trainResults.csv' sh "ls -la"