Fix email notification

This commit is contained in:
Agata 2022-05-01 10:26:40 +02:00
parent 3155102967
commit b32dea5b12

View File

@ -19,10 +19,12 @@ pipeline {
copyArtifacts filter: '*', projectName:'s444421-evaluation/training_and_evaluation', optional: true copyArtifacts filter: '*', projectName:'s444421-evaluation/training_and_evaluation', optional: true
sh 'ipython ./evaluation.py' sh 'ipython ./evaluation.py'
archiveArtifacts artifacts: 'build_accuracy.txt, bilds_accuracy.jpg' archiveArtifacts artifacts: 'build_accuracy.txt, bilds_accuracy.jpg'
script {
ACC = sh (script: 'tail -n 1 build_accuracy.txt', returnStdout: true).trim() ACC = sh (script: 'tail -n 1 build_accuracy.txt', returnStdout: true).trim()
} }
} }
} }
}
post { post {
success { success {
emailext body: 'SUCCESS - ACCURACY: ${ACC}', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' emailext body: 'SUCCESS - ACCURACY: ${ACC}', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'