Update 'lab6/Jenkinsfile_eval'
All checks were successful
s449288-evaluation/pipeline/head This commit looks good
All checks were successful
s449288-evaluation/pipeline/head This commit looks good
This commit is contained in:
parent
72e3a22c33
commit
9ff8ec8484
@ -9,6 +9,11 @@ pipeline {
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR'
|
||||
)
|
||||
string(
|
||||
defaultValue: 'none',
|
||||
description: 'Last mean absolute error of the model',
|
||||
name: 'LAST_MAE'
|
||||
)
|
||||
}
|
||||
stages {
|
||||
stage('Stage 1') {
|
||||
@ -28,6 +33,9 @@ pipeline {
|
||||
echo 'Evaluating model...'
|
||||
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...'
|
||||
@ -38,16 +46,16 @@ pipeline {
|
||||
}
|
||||
post {
|
||||
success {
|
||||
emailext body: 'SUCCESS', 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', 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', 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', 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'
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user