From f42a5aca2f10d8898cc39ae2e7d2bd62008e9c81 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Fri, 6 May 2022 18:42:50 +0200 Subject: [PATCH] Add model build selector --- Jenkinsfile-eval | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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') {