From 12893a69fb5920eabb27e47b396a68365c379d27 Mon Sep 17 00:00:00 2001 From: Zofia Galla Date: Sat, 15 May 2021 18:34:58 +0200 Subject: [PATCH] Change artifacts load --- Jenkinsfile_evaluation | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile_evaluation b/Jenkinsfile_evaluation index 8f27b69..71d836b 100644 --- a/Jenkinsfile_evaluation +++ b/Jenkinsfile_evaluation @@ -6,17 +6,21 @@ pipeline { description: 'Which build to use for copying test data', name: 'BUILD_SELECTOR_CREATE_DATASET') buildSelector( - defaultSelector: upstream(), + defaultSelector: lastSuccessful(), description: 'Which build to use for copying trained model', - name: 'BUILD_SELECTOR_TRAINING') + name: 'BUILD_SELECTOR_TRAINING') + buildSelector( + defaultSelector: lastSuccessful(), + description: 'Which build to use for copying previous evaluation results', + name: 'BUILD_SELECTOR_EVALUATION') gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH' } stages { stage('copyArtifacts') { steps { - copyArtifacts fingerprintArtifacts: true, projectName: 's434684-create-dataset', selector: buildParameter('BUILD_SELECTOR_CREATE_DATASET') - copyArtifacts fingerprintArtifacts: true, projectName: 's434684-training/master', selector: buildParameter('BUILD_SELECTOR_TRAINING') - copyArtifacts fingerprintArtifacts: true, projectName: 's434684-evaluation/master', selector: lastSuccessful(), optional: True + copyArtifacts fingerprintArtifacts: true, projectName: "s434684-create-dataset", selector: buildParameter('BUILD_SELECTOR_CREATE_DATASET') + copyArtifacts fingerprintArtifacts: true, projectName: "s434684-training/${params.BRANCH}", selector: buildParameter('BUILD_SELECTOR_TRAINING') + copyArtifacts fingerprintArtifacts: true, projectName: "s434684-evaluation/${params.BRANCH}", selector: buildParameter('BUILD_SELECTOR_EVALUATION'), optional: True } } stage('Sh script') {