ium_434804/Jenkinsfile_mlflow
Dawid 575dca6139
Some checks reported errors
s434804-training/pipeline/head Something is wrong with the build of this commit
fix overwriting model
2021-05-23 14:58:10 +02:00

31 lines
905 B
Plaintext

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'
}
}
}
}