Update 'lab6/Jenkinsfile_eval'
Some checks failed
s449288-evaluation/pipeline/head There was a failure building this commit

This commit is contained in:
Kacper Dudzic 2022-04-26 22:34:19 +02:00
parent ab0f92658b
commit d32e34f06b

View File

@ -9,11 +9,6 @@ pipeline {
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
string(
defaultValue: 'none',
description: 'Last mean absolute error of the model',
name: 'LAST_MAE'
)
}
stages {
stage('Stage 1') {
@ -33,7 +28,6 @@ pipeline {
echo 'Evaluating model...'
sh 'python3 evaluate.py'
echo 'Model evaluated. Metrics saved. Plot saved.'
sh 'LAST_MAE=$(tail -1 eval_results.txt)'
sh 'head eval_results.txt'
sh 'file error_plot.jpg'
echo 'Archiving metrics file...'
@ -42,6 +36,12 @@ pipeline {
}
}
}
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'