From 3599008edf0044cb2e32052f02c2e9131c3544d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wa=C5=82=C4=99sa?= Date: Fri, 6 May 2022 23:14:52 +0200 Subject: [PATCH] add output MSE --- Jenkinsfile-evaluation | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'