added metrics to body of mail in evaluation
This commit is contained in:
parent
cd2a5f7265
commit
fdfd0dc4cd
@ -36,13 +36,20 @@ pipeline {
|
|||||||
copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true
|
copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true
|
||||||
sh 'python3 ./evaluation.py'
|
sh 'python3 ./evaluation.py'
|
||||||
archiveArtifacts 'eval.csv, metrics.png'
|
archiveArtifacts 'eval.csv, metrics.png'
|
||||||
|
|
||||||
|
script {
|
||||||
|
metric = sh (
|
||||||
|
script: 'tail -1 eval.csv',
|
||||||
|
returnStdout: true
|
||||||
|
).trim()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
emailext body: "${currentBuild.currentResult}", subject: '444354-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
emailext body: "${currentBuild.currentResult}, metrics of MAE, MSE, RMSE: ${metric}", subject: '444354-evaluation build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user