From 4f6b9471c2aac9877f304edfb4fd735ee80dcfd2 Mon Sep 17 00:00:00 2001 From: Kamila Date: Tue, 3 May 2022 18:58:44 +0200 Subject: [PATCH] Task 2 Part 2 --- Jenkinsfile_eval | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_eval b/Jenkinsfile_eval index 0a5499a..f011e5c 100644 --- a/Jenkinsfile_eval +++ b/Jenkinsfile_eval @@ -29,6 +29,9 @@ pipeline { stage('Get data save artifacts') { steps { sh 'python3 ./nn_train_eval.py' + script { + metrics = readFile(file: 'current_results.txt') + } archiveArtifacts artifacts: 'my_model/saved_model.pb, metrics.txt, output.jpg' } @@ -37,7 +40,7 @@ pipeline { post { always { - emailext body: "${currentBuild.currentResult}", subject: 's444517_build_status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' + emailext body: "${currentBuild.currentResult} ${metrics}", subject: 's444517_build_status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' } } }