ium_434788/Jenkinsfile_predict_r
Dominik Strzako f10aeb31a0 !!!!
2021-05-27 13:15:32 +02:00

53 lines
1.6 KiB
Plaintext

pipeline {
agent {
docker {
image 'snowycocoon/ium_434788:4'
args '-v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns'
}
}
parameters{
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'WHICH_BUILD'
)
}
stages {
stage('copy artifacts')
{
steps
{
sh 'rm -r my_model'
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD'))
sh 'ls'
}
}
stage('predict')
{
steps
{
catchError {
sh 'python3.8 Zadanie_09_MLflow_Predict_Registry.py ${BATCH_SIZE} ${EPOCHS}'
}
}
}
}
post {
success {
mail body: 'SUCCESS',
subject: 's434788 mlflow predict from registry',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
mail body: 'UNSTABLE', subject: 's434788 mlflow predict from registry', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE', subject: 's434788 mlflow predict from registry', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
mail body: 'CHANGED', subject: 's434788 mlflow predict from registry', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}