diff --git a/Jenkinsfile-evaluation b/Jenkinsfile-evaluation index dd85ea8..4a7b47f 100644 --- a/Jenkinsfile-evaluation +++ b/Jenkinsfile-evaluation @@ -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'