Update 'lab6/Jenkinsfile_eval'
All checks were successful
s449288-evaluation/pipeline/head This commit looks good

This commit is contained in:
Kacper Dudzic 2022-04-26 22:20:10 +02:00
parent 4630cc58c0
commit ab0f92658b

View File

@ -34,8 +34,6 @@ pipeline {
sh 'python3 evaluate.py'
echo 'Model evaluated. Metrics saved. Plot saved.'
sh 'LAST_MAE=$(tail -1 eval_results.txt)'
sh 'echo LAST_MAE'
echo 'LAST_MAE'
sh 'head eval_results.txt'
sh 'file error_plot.jpg'
echo 'Archiving metrics file...'
@ -46,16 +44,16 @@ pipeline {
}
post {
success {
emailext body: 'SUCCESS - $LAST_MAE MAE', subject: 's449288-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
emailext body: 'SUCCESS - ${LAST_MAE} MAE', subject: 's449288-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'FAILURE - $LAST_MAE MAE', subject: 's449288-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
emailext body: 'FAILURE - ${LAST_MAE} MAE', subject: 's449288-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
emailext body: 'UNSTABLE - $LAST_MAE MAE', subject: 's449288-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
emailext body: 'UNSTABLE - ${LAST_MAE} MAE', subject: 's449288-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
emailext body: 'CHANGED - $LAST_MAE MAE', subject: 's449288-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
emailext body: 'CHANGED - ${LAST_MAE} MAE', subject: 's449288-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}