From 89eed26a4a00c5ee5460560f8bc674f6992a5a99 Mon Sep 17 00:00:00 2001 From: Kamila Date: Tue, 3 May 2022 18:53:50 +0200 Subject: [PATCH] Task 2 Part 2 --- Jenkinsfile_eval | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile_eval b/Jenkinsfile_eval index 5f85da5..05313f2 100644 --- a/Jenkinsfile_eval +++ b/Jenkinsfile_eval @@ -21,7 +21,7 @@ pipeline { stage('Copy from different Pipeline') { steps { copyArtifacts fingerprintArtifacts: true, projectName: 's444517-create-dataset', selector: lastSuccessful() - copyArtifacts fingerprintArtifacts: true, projectName: 's444517-training/${BRANCH}', selector: buildParameter('BUILD_SELECTOR') + copyArtifacts fingerprintArtifacts: true, projectName: 's444517-training/${params.BRANCH}', selector: buildParameter('BUILD_SELECTOR') copyArtifacts fingerprintArtifacts: true, projectName: 's444517-evaluation/master', selector: lastSuccessful(), optional: true } } @@ -29,7 +29,8 @@ pipeline { stage('Get data save artifacts') { steps { sh 'python3 ./nn_train_eval.py' - archiveArtifacts artifacts: 'my_model/saved_model.pb, metrics.txt, output.jpg, current_results.txt' + metrics = readFile(file: 'current_results.txt') + archiveArtifacts artifacts: 'my_model/saved_model.pb, metrics.txt, output.jpg' } } @@ -37,7 +38,7 @@ pipeline { post { always { - emailext body: "${currentBuild.currentResult} ${readFile(file: 'current_results.txt')}", 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' } } }