diff --git a/Jenkinsfile_mlflow b/Jenkinsfile_mlflow new file mode 100644 index 0000000..fd518e0 --- /dev/null +++ b/Jenkinsfile_mlflow @@ -0,0 +1,31 @@ +pipeline { + agent {dockerfile true} + parameters { + buildSelector( + defaultSelector: lastSuccessful(), + description: 'Which build to use for copying artifacts', + name: 'BUILD_SELECTOR' + ) + } + stages { + stage('copyArtifacts') { + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 's434705-training/master', selector: buildParameter('BUILD_SELECTOR') + } + } + stage('training') { + steps { + sh 'rm -rf country_vaccination' + sh 'chmod +x mlflow_model.py' + sh 'python3 mlflow_model.py' + } + } + stage('sendMail') { + steps{ + emailext body: currentBuild.result ?: 'MLFLOW PREDICT SUCCESS', + subject: 's434804', + to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms' + } + } + } +} \ No newline at end of file