36 lines
1022 B
Plaintext
36 lines
1022 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: 's430705-training/master', selector: buildParameter('BUILD_SELECTOR')
|
|
}
|
|
}
|
|
stage('training') {
|
|
steps {
|
|
sh 'rm -rf movies_imdb'
|
|
sh 'chmod +x pred_from_mlflow_model.py'
|
|
sh 'python3 pred_from_mlflow_model.py'
|
|
}
|
|
}
|
|
stage('archiveArtifacts') {
|
|
steps{
|
|
archiveArtifacts 'movies_imdb/**'
|
|
}
|
|
}
|
|
stage('sendMail') {
|
|
steps{
|
|
emailext body: currentBuild.result ?: 'MLFLOW PREDICT SUCCESS',
|
|
subject: 's434804',
|
|
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
}
|
|
}
|
|
} |