pipeline { agent any; parameters { buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying data artifacts', name: 'BUILD_SELECTOR_DATASET' ) buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying training artifacts', name: 'BUILD_SELECTOR_TRAINING' ) } stages { stage('copy-artifacts') { steps { copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-create-dataset', selector: buildParameter('BUILD_SELECTOR_DATASET')) copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR_TRAINING')) } } stage('evaluation') { steps { script { def image = docker.build('dock') image.inside{ sh 'chmod +x evaluation.py' sh 'python3 evaluation.py' } } } } }