Update Jenkinsfile

This commit is contained in:
Alicja Szulecka 2024-04-30 19:02:47 +02:00
parent 42408c00ea
commit cfbf877ac2

3
Jenkinsfile vendored
View File

@ -6,6 +6,7 @@ pipeline {
description: 'Build for copying artifacts', description: 'Build for copying artifacts',
name: 'BUILD_SELECTOR' name: 'BUILD_SELECTOR'
) )
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'experiments', name: 'BRANCH', type: 'PT_BRANCH'
} }
stages { stages {
stage('Git Checkout') { stage('Git Checkout') {
@ -16,7 +17,7 @@ pipeline {
stage('Copy Artifacts') { stage('Copy Artifacts') {
steps { steps {
copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464914-create-dataset', selector: buildParameter('BUILD_SELECTOR') 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 copyArtifacts filter: '*', projectName: 's464914-evaluation/evaluation/', selector: buildParameter('BUILD_SELECTOR'), optional: true
} }
} }