pipeline {
    agent {dockerfile true}
    stages {
        stage('training') {
			steps {
                sh 'export MLFLOW_TRACKING_URI=http://172.17.0.1:5000'
                sh 'chmod +x pred_from_mlflow_model.py'
                sh 'python3 pred_from_mlflow_model.py'
			}
		}
        stage('sendMail') {
            steps{
                emailext body: currentBuild.result ?: 'MLFLOW PREDICT COOP SUCCESS',
                subject: 's434804',
                to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
            }
        }
    }
}