From cfbf877ac27da94b8e31e274f9a2a34d4c985c2e Mon Sep 17 00:00:00 2001 From: Alicja Szulecka <73056579+AliSzu@users.noreply.github.com> Date: Tue, 30 Apr 2024 19:02:47 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9a9e8f3..b152bea 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,6 +6,7 @@ pipeline { description: 'Build for copying artifacts', name: 'BUILD_SELECTOR' ) + gitParameter branchFilter: 'origin/(.*)', defaultValue: 'experiments', name: 'BRANCH', type: 'PT_BRANCH' } stages { stage('Git Checkout') { @@ -16,7 +17,7 @@ pipeline { stage('Copy Artifacts') { steps { copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464914-create-dataset', selector: buildParameter('BUILD_SELECTOR') - copyArtifacts filter: '*', projectName: 's464914-training/experiments/', selector: buildParameter('BUILD_SELECTOR') + copyArtifacts filter: '*', projectName: 's464914-training/' + params.BRANCH + '/', selector: buildParameter('BUILD_SELECTOR') copyArtifacts filter: '*', projectName: 's464914-evaluation/evaluation/', selector: buildParameter('BUILD_SELECTOR'), optional: true } }