From c9c4ac204ca813f1496c327855b59307744bcbcf Mon Sep 17 00:00:00 2001 From: Zofia Galla Date: Sun, 16 May 2021 13:39:22 +0200 Subject: [PATCH] Add email posting to Jenkinsfile --- Jenkinsfile_evaluation | 8 ++++++++ Jenkinsfile_training | 12 ++++++++++++ 2 files changed, 20 insertions(+) diff --git a/Jenkinsfile_evaluation b/Jenkinsfile_evaluation index b6dccf0..2569593 100644 --- a/Jenkinsfile_evaluation +++ b/Jenkinsfile_evaluation @@ -39,5 +39,13 @@ pipeline { 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' + } } } diff --git a/Jenkinsfile_training b/Jenkinsfile_training index 2e9bee9..a07a74b 100644 --- a/Jenkinsfile_training +++ b/Jenkinsfile_training @@ -30,5 +30,17 @@ pipeline { 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' + } } }