From e7a47424a6b627829621b9465904545c2ef7ea11 Mon Sep 17 00:00:00 2001 From: rforstner Date: Tue, 23 Nov 2021 18:36:35 +0100 Subject: [PATCH] init commit --- Jenkinsfile | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dc1a488..c1f3910 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,16 +87,20 @@ } stage('Send report') { - try{ - mail subject: env.JOB_NAME, - body: 'test', - to: 'rene.forstner@nttdata.com', - replyTo: 'rene.forstner@nttdata.com', - from: 'coco-apm@bmw.de' - - } - catch ( mailExc ){ - echo "Sending Email Failed: ${mailExc}" + steps { + script { + try { + mail subject: env.JOB_NAME, + body: 'test', + to: 'rene.forstner@nttdata.com', + replyTo: 'rene.forstner@nttdata.com', + from: 'coco-apm@bmw.de' + + } + catch ( mailExc ){ + echo "Sending Email Failed: ${mailExc}" + } + } } } }