diff --git a/Jenkinsfile-eval b/Jenkinsfile-eval index 6aef2c7..56a3698 100644 --- a/Jenkinsfile-eval +++ b/Jenkinsfile-eval @@ -10,8 +10,13 @@ pipeline { buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', - name: 'BUILD_SELECTOR' + name: 'BRANCH_SELECTOR' ) + buildSelector( + defaultSelector: lastSuccessful(), + description: 'Which build to use for copying model', + name: 'MODEL_BUILD_SELECTOR' + ) } environment { @@ -24,14 +29,14 @@ pipeline { copyArtifacts projectName: 's444409-create-dataset', selector: lastSuccessful(), optional: true } } - stage('Get model trend') { + stage('Get model') { steps { - copyArtifacts projectName: "s444409-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true + copyArtifacts projectName: "s444409-training/${params.BRANCH}/", selector: buildParameter('MODEL_BUILD_SELECTOR') } } stage('Get previous trend') { steps { - copyArtifacts projectName: "s444409-evaluation/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true + copyArtifacts projectName: "s444409-evaluation/${params.BRANCH}/", selector: buildParameter('BRANCH_SELECTOR'), optional: true } } stage('Evaluate model and write results to file') {