print eval result in mail
All checks were successful
s444498-evaluation/pipeline/head This commit looks good
All checks were successful
s444498-evaluation/pipeline/head This commit looks good
This commit is contained in:
parent
9b71dc20d6
commit
475a76e552
@ -24,6 +24,9 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh "chmod u+x ./evaluation.py"
|
sh "chmod u+x ./evaluation.py"
|
||||||
sh "python3 ./evaluation.py"
|
sh "python3 ./evaluation.py"
|
||||||
|
script {
|
||||||
|
LOSS = sh(script: 'tail -1 eval_result.txt', returnStdout: true).trim()
|
||||||
|
}
|
||||||
archiveArtifacts artifacts: "eval_result.txt", onlyIfSuccessful: true
|
archiveArtifacts artifacts: "eval_result.txt", onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -31,7 +34,7 @@ pipeline {
|
|||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
emailext body: "SUCCESS", subject: "s444498-evaluation", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
emailext body: "SUCCESS results: RMSE:${LOSS}", subject: "s444498-evaluation", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
|
||||||
}
|
}
|
||||||
|
|
||||||
failure {
|
failure {
|
||||||
|
Loading…
Reference in New Issue
Block a user