From a613604cb57b0b284000081b2cbd1d5842c019f5 Mon Sep 17 00:00:00 2001 From: patrycjalazna Date: Thu, 13 May 2021 17:32:38 +0200 Subject: [PATCH] added git parameter --- Jenkinsfile-evaluation | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile-evaluation b/Jenkinsfile-evaluation index 36784ad..5e99d94 100644 --- a/Jenkinsfile-evaluation +++ b/Jenkinsfile-evaluation @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + dockerfile true + } parameters { buildSelector( @@ -19,6 +21,9 @@ pipeline { description: 'Which build to use for copying evaluation artifacts', name: 'BUILD_SELECTOR_EVALUATION' ) + + gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH' + } } stages { @@ -29,7 +34,7 @@ pipeline { { copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-create-dataset', selector: buildParameter('BUILD_SELECTOR_DATASET')) copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-training/master', selector: buildParameter('BUILD_SELECTOR_TRAINING')) - copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-evaluation/master', selector: buildParameter('BUILD_SELECTOR_EVALUATION', optional=true)) + copyArtifacts(fingerprintArtifacts: true, optional=true, projectName: 's434742-evaluation/master', selector: buildParameter('BUILD_SELECTOR_EVALUATION')) } }