ium_444507/Jenkinsfile_training

28 lines
917 B
Plaintext
Raw Normal View History

2022-05-01 18:34:51 +02:00
pipeline {
agent {
docker { image 's444507_create_dataset_image:latest' }
}
2022-05-01 20:55:08 +02:00
parameters {
string(name: 'epoch', defaultValue: '1000', description: 'Number of epochs to train model.')
}
2022-05-01 18:34:51 +02:00
stages {
stage('Get arifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: lastSuccessful()
}
}
2022-05-06 00:52:42 +02:00
stage('Train model with sacred') {
2022-05-01 18:34:51 +02:00
steps {
2022-05-16 01:39:21 +02:00
sh "python3 lab08_deepLearining_mlflow.py $epochs"
2022-05-01 18:34:51 +02:00
}
}
}
post {
success {
2022-05-16 01:31:02 +02:00
archiveArtifacts artifacts: 'CarPrices_pytorch_model.pkl, mlruns/**, my_model/**', followSymlinks: false
2022-05-01 18:34:51 +02:00
}
always {
emailext body: "${currentBuild.currentResult}", subject: 's444507-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}