pipeline { agent { docker { image 'adnovac/ium_s434760:4.1' } } 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/mlflow', selector: buildParameter('WHICH_BUILD')) sh "echo ${json_input} >> input.json" } } stage('test') { steps { sh 'python3.8 try_model.py' } } stage('archive artifacts') { steps { archiveArtifacts 'result.txt' } } } }