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 { pipeline {
agent { agent {
dockerfile true dockerfile true
@ -20,14 +22,17 @@ pipeline {
sh 'ipython ./evaluation.py' sh 'ipython ./evaluation.py'
archiveArtifacts artifacts: 'build_accuracy.txt, bilds_accuracy.jpg' archiveArtifacts artifacts: 'build_accuracy.txt, bilds_accuracy.jpg'
script { 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 { post {
success { 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 { failure {
emailext body: 'FAILURE', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms' emailext body: 'FAILURE', subject: 's444421-evaluation status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'