ium_434804/Jenkinsfile_mlflow

36 lines
1008 B
Plaintext
Raw Normal View History

2021-05-23 14:58:10 +02:00
pipeline {
agent {dockerfile true}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
stage('copyArtifacts') {
steps {
2021-05-23 15:36:25 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-training/master', selector: buildParameter('BUILD_SELECTOR')
2021-05-23 14:58:10 +02:00
}
}
stage('training') {
steps {
2021-05-23 18:44:24 +02:00
sh 'rm -rf movies_imdb'
2021-05-23 15:19:02 +02:00
sh 'chmod +x pred_from_model.py'
sh 'python3 pred_from_model.py'
}
}
stage('archiveArtifacts') {
steps{
archiveArtifacts 'movies_imdb/**'
2021-05-23 14:58:10 +02:00
}
}
stage('sendMail') {
steps{
emailext body: currentBuild.result ?: 'MLFLOW PREDICT SUCCESS',
subject: 's434804',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}
}