Update Jenkinsfile
This commit is contained in:
parent
b32dea5b12
commit
a1f7758686
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user