Add email posting to Jenkinsfile

This commit is contained in:
Zofia Galla 2021-05-16 13:39:22 +02:00
parent f695c5c5d0
commit c9c4ac204c
2 changed files with 20 additions and 0 deletions

View File

@ -39,5 +39,13 @@ pipeline {
archiveArtifacts artifacts: 'evaluation.txt,mean_square_error.png' archiveArtifacts artifacts: 'evaluation.txt,mean_square_error.png'
} }
} }
}
post {
success {
mail body: 'SUCCESS', subject: 's434684-evaluation', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE', subject: 's434684-evaluation', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
} }
} }

View File

@ -30,5 +30,17 @@ pipeline {
archiveArtifacts artifacts: 'model_movies.h5,my_runs/**' archiveArtifacts artifacts: 'model_movies.h5,my_runs/**'
} }
} }
}
post {
success {
build job: 's434684-evaluation/master'
mail body: 'SUCCESS',
subject: 's434684-training',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE', subject: 's434684-training', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
} }
} }