diff --git a/Jenkinsfile_evaluation b/Jenkinsfile_evaluation index edb3429..b8c1f8e 100644 --- a/Jenkinsfile_evaluation +++ b/Jenkinsfile_evaluation @@ -36,13 +36,20 @@ pipeline { copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true sh 'python3 ./evaluation.py' archiveArtifacts 'eval.csv, metrics.png' + + script { + metric = sh ( + script: 'tail -1 eval.csv', + returnStdout: true + ).trim() + } } } } post { always { - emailext body: "${currentBuild.currentResult}", subject: '444354-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' + emailext body: "${currentBuild.currentResult}, metrics of MAE, MSE, RMSE: ${metric}", subject: '444354-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' } } } \ No newline at end of file