From 0a760292ae44a3bb6ec1490cf040688f3126a3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Parafin=CC=81ski?= Date: Mon, 9 May 2022 01:29:22 +0200 Subject: [PATCH] add mae to email --- Jenkinsfile_eval | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile_eval b/Jenkinsfile_eval index 5386277..727faf9 100644 --- a/Jenkinsfile_eval +++ b/Jenkinsfile_eval @@ -21,38 +21,26 @@ pipeline { sh 'python3 ./biblioteka_DL/evaluate.py' archiveArtifacts artifacts: 'mae.txt, rmse.txt, mse.txt, evr.txt, metrics.png', followSymlinks: false script { - ACC = sh ( + MAE = sh ( script: 'tail -1 mae.txt', returnStdout: true ).trim() - ACC = sh ( - script: 'tail -1 rmse.txt', - returnStdout: true - ).trim() - ACC = sh ( - script: 'tail -1 mse.txt', - returnStdout: true - ).trim() - ACC = sh ( - script: 'tail -1 evr.txt', - returnStdout: true - ).trim() } } } } post { success { - emailext body: "SUCCESS, ACC = ${ACC}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' + emailext body: "SUCCESS, MAE = ${MAE}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' } failure { - emailext body: "FAILURE, ACC = ${ACC}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' + emailext body: "FAILURE, MAE = ${MAE}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' } unstable { - emailext body: "UNSTABLE, ACC = ${ACC}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' + emailext body: "UNSTABLE, MAE = ${MAE}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' } changed { - emailext body: "CHANGED, ACC = ${ACC}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' + emailext body: "CHANGED, MAE = ${MAE}", subject: 's444018-evaluation', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' } } }