pipeline { agent {docker { image 'snowycocoon/ium_434788:4'}} parameters{ buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'WHICH_BUILD' ) } stages { stage('copy artifacts') { steps { sh 'rm -r my_model' sh 'rm -r model' copyArtifacts(fingerprintArtifacts: true, projectName: 's434695-training/train', selector: buildParameter('WHICH_BUILD')) } } stage('predict') { steps { catchError { sh 'python3.8 Zadanie_09_MLflow_Predict.py ${BATCH_SIZE} ${EPOCHS}' } } } } post { success { mail body: 'SUCCESS', subject: 's434788 mlflow predict', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' } unstable { mail body: 'UNSTABLE', subject: 's434788 mlflow predict', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' } failure { mail body: 'FAILURE', subject: 's434788 mlflow predict', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' } changed { mail body: 'CHANGED', subject: 's434788 mlflow predict', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' } } }