pipeline { agent { docker { image 'adnovac/ium_s434760:4' } } parameters{ buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'WHICH_BUILD' ) string( defaultValue: '', description: 'json input', name: 'json_input' ) } stages { stage('copy artifacts') { steps { copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training', selector: buildParameter('WHICH_BUILD')) } } stage('test') { steps { catchError { sh 'python3.8 try_model.py' } } } stage('archive artifacts') { steps { archiveArtifacts 'result.txt' } } } }