From 414f4e614a7131fd4245debbb7f51d2c81c01bc8 Mon Sep 17 00:00:00 2001 From: s444417 Date: Sat, 7 May 2022 11:14:13 +0200 Subject: [PATCH] fix apram branch --- Jenkinsfile.eval | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile.eval b/Jenkinsfile.eval index 39ced6c..6303460 100644 --- a/Jenkinsfile.eval +++ b/Jenkinsfile.eval @@ -3,11 +3,12 @@ pipeline { dockerfile true } parameters{ - string( - defaultValue: 'master', - description: 'training branch name', - name: 'TRAINING_BRANCH' - ) + gitParameter branchFilter: 'origin/(.*)', defaultValue: 'main', name: 'BRANCH', type: 'PT_BRANCH' + buildSelector( + defaultSelector: lastSuccessful(), + description: 'Which build to use for copying artifacts', + name: 'BUILD_SELECTOR' + ) } stages { stage('Copy prev build artifact') { @@ -30,7 +31,7 @@ pipeline { stage('Copy') { steps { copyArtifacts projectName: 's444417-create-dataset' - copyArtifacts projectName: 's444417-training/$TRAINING_BRANCH' + copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true sh 'python3 ./src/evalScript.py' archiveArtifacts 'trainResults.csv' sh "ls -la"