diff --git a/lab6/Jenkinsfile_eval b/lab6/Jenkinsfile_eval index 0986da6..1a79393 100644 --- a/lab6/Jenkinsfile_eval +++ b/lab6/Jenkinsfile_eval @@ -33,15 +33,15 @@ pipeline { echo 'Archiving metrics file...' archiveArtifacts 'eval_results.txt' echo 'File archived' + script { + LAST_MAE = sh ( + script: 'tail -1 eval_results.txt', + returnStdout: true + ).trim() + } } } } - script { - LAST_MAE = sh ( - script: 'tail -1 eval_results.txt', - returnStdout: true - ).trim() - } post { success { emailext body: 'SUCCESS - ${LAST_MAE} MAE', subject: 's449288-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'