From 02da6bf4cd2d5bd003c87287a6c23f516d067322 Mon Sep 17 00:00:00 2001 From: Karolina Oparczyk Date: Mon, 17 May 2021 22:22:29 +0200 Subject: [PATCH] evaluation branch --- JenkinsfileEval | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/JenkinsfileEval b/JenkinsfileEval index e66d94e..87aebf5 100644 --- a/JenkinsfileEval +++ b/JenkinsfileEval @@ -1,9 +1,24 @@ node { + stage('Preparation') { + + properties([ + parameters([ + buildSelector(defaultSelector: lastSuccessful(), + description: 'Which build to use for copying datasets', + name: 'BUILD_DATASET'), + buildSelector(defaultSelector: lastSuccessful(), + description: 'Which build to use for copying model', + name: 'BUILD_MODEL') + ]) + ] + ) + + } stage('Clone repo') { docker.image("karopa/ium:11").inside { stage('Test') { - copyArtifacts fingerprintArtifacts: true, projectName: 's434765-create-dataset', selector: buildParameter("BUILD_SELECTOR") - copyArtifacts fingerprintArtifacts: true, projectName: 's434765-training', selector: buildParameter("BUILD_SELECTOR") + copyArtifacts fingerprintArtifacts: true, projectName: 's434765-create-dataset', selector: buildParameter("BUILD_DATASET") + copyArtifacts fingerprintArtifacts: true, projectName: 's434765-training', selector: buildParameter("BUILD_MODEL") sh ''' #!/usr/bin/env bash chmod 777 evaluate_network.sh