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' } } }