Update Jenkinsfile

This commit is contained in:
Agata 2022-05-01 10:37:24 +02:00
parent b32dea5b12
commit a1f7758686

View File

@ -1,3 +1,5 @@
def ACC = ''
pipeline {
agent {
dockerfile true
@ -20,14 +22,17 @@ pipeline {
sh 'ipython ./evaluation.py'
archiveArtifacts artifacts: 'build_accuracy.txt, bilds_accuracy.jpg'
script {
ACC = sh (script: 'tail -n 1 build_accuracy.txt', returnStdout: true).trim()
ACC=$(tail -n 1 build_accuracy.txt)
}
}
}
stage('test') {
sh 'echo $ACC'
}
}
post {
success {
emailext body: 'SUCCESS - ACCURACY: ${ACC}', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
emailext body: 'SUCCESS', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'FAILURE', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'