2022-05-05 21:40:34 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 's444409-create-dataset'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Train model') {
|
|
|
|
steps {
|
|
|
|
sh "python train_model.py"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-05 21:53:00 +02:00
|
|
|
environment {
|
|
|
|
NOTIFICATION_ADDRESS = 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
|
2022-05-05 21:40:34 +02:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
archiveArtifacts artifacts: 'model_out',
|
|
|
|
onlyIfSuccessful: true
|
|
|
|
}
|
2022-05-05 21:53:00 +02:00
|
|
|
|
|
|
|
success {
|
|
|
|
emailext body: 'SUCCESS', subject: "${env.JOB_NAME}", to: "${env.NOTIFICATION_ADDRESS}"
|
|
|
|
}
|
|
|
|
|
|
|
|
failure {
|
|
|
|
emailext body: 'FAILURE', subject: "${env.JOB_NAME}", to: "${env.NOTIFICATION_ADDRESS}"
|
|
|
|
}
|
|
|
|
|
|
|
|
unstable {
|
|
|
|
emailext body: 'UNSTABLE', subject: "${env.JOB_NAME}", to: "${env.NOTIFICATION_ADDRESS}"
|
|
|
|
}
|
|
|
|
|
|
|
|
changed {
|
|
|
|
emailext body: 'CHANGED', subject: "${env.JOB_NAME}", to: "${env.NOTIFICATION_ADDRESS}"
|
|
|
|
}
|
2022-05-05 21:40:34 +02:00
|
|
|
}
|
|
|
|
}
|