diff --git a/JenkinsfileEvaluation b/JenkinsfileEvaluation index 34f61c1..ea7c2a6 100644 --- a/JenkinsfileEvaluation +++ b/JenkinsfileEvaluation @@ -9,6 +9,14 @@ pipeline { description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR' ) + gitParameter( + branch: '', + branchFilter: '.*', + defaultValue: 'main', + name: 'TRAINING_BRANCH', + type: 'PT_BRANCH', + description: 'Branch for training project' + ) } triggers { @@ -27,8 +35,8 @@ pipeline { stage('CopyArtifacts') { steps { copyArtifacts fingerprintArtifacts: true, projectName: 'z-s495719-create-dataset', selector: buildParameter('BUILD_SELECTOR') - copyArtifacts fingerprintArtifacts: true, projectName: 's495719-training', selector: buildParameter('BUILD_SELECTOR') - copyArtifacts fingerprintArtifacts: true, projectName: 's495719-evaluation', selector: buildParameter('BUILD_SELECTOR'), optional: true + copyArtifacts fingerprintArtifacts: true, projectName: 's495719-training/' + params.TRAINING_BRANCH, selector: buildParameter('BUILD_SELECTOR') + copyArtifacts fingerprintArtifacts: true, projectName: 's495719-evaluation/main', selector: buildParameter('BUILD_SELECTOR'), optional: true } } stage('Script') {