pipeline { agent { dockerfile true } parameters { buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying training artifacts', name: 'WHICH_BUILD_TRAIN' ) } stages { stage('copy artifacts') { steps { copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/master', selector: buildParameter('WHICH_BUILD_TRAIN')) } } stage('predict') { steps { catchError { sh 'python3 predict434788.py' } } } } }