diff --git a/Jenkinsfile.eval b/Jenkinsfile.eval index 08e4fbd..e4c8e90 100644 --- a/Jenkinsfile.eval +++ b/Jenkinsfile.eval @@ -3,16 +3,12 @@ pipeline { dockerfile true } parameters{ - string( - defaultValue: 'master', - description: 'training branch name', - name: 'TRAINING_BRANCH' - ) - password( - defaultValue: '', - description: 'JENKINS password', - name: 'JENKINS_KEY' - ) + 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') { @@ -35,7 +31,7 @@ pipeline { stage('Copy') { steps { copyArtifacts projectName: 's444417-create-dataset' - copyArtifacts projectName: 's444417-training/$TRAINING_BRANCH' + copyArtifacts projectName: 's444417-training/$BRANCH' sh 'python3 ./src/evalScript.py' archiveArtifacts 'trainResults.csv' sh "ls -la"