pipeline { agent {dockerfile true} parameters { buildSelector( defaultSelector: lastSuccessful(), description: 'Last successfull artifact', name: 'BUILD_SELECTOR' ) string( defaultValue: 'input_example.json', description: 'Input name', name: 'INPUT_NAME', trim: false ) } stages { stage('Copy model artifacts from s426206') { steps { copyArtifacts fingerprintArtifacts: false, projectName: 's426206-training/master', selector: buildParameter('BUILD_SELECTOR') } } stage('Run prediction') { steps { sh 'python3 mlflow_prediction.py $INPUT_NAME' } } } }