add output MSE

This commit is contained in:
Sebastian Wałęsa 2022-05-06 23:14:52 +02:00
parent b7acb0757b
commit 3599008edf

View File

@ -11,12 +11,18 @@ pipeline {
copyArtifacts filter: '*', projectName: 's478839-create-dataset'
sh 'python3 ./ml_pytorch_results.py'
archiveArtifacts artifacts: 'metrics.txt, MSE.txt, RMSplot.png', followSymlinks: false
script {
out = sh (
script: 'tail -1 MSE.txt',
returnStdout: true
).trim()
}
}
}
}
post {
success {
emailext body: 'SUCCESS', subject: 's478839-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
emailext body: 'SUCCESS, MSE = ${out}', subject: 's478839-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'FAILURE', subject: 's478839-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'