From de3f3bc96fdf52de19118e67d11176d33a2a759c Mon Sep 17 00:00:00 2001 From: rforstner Date: Tue, 23 Nov 2021 18:31:47 +0100 Subject: [PATCH] init commit --- Jenkinsfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 9fbfbe8..56b40e0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,6 +53,7 @@ //DISTINGUISH between China and EMEA JAWS environment and execute the script only on the respective environment //Define how to + // could also be a script block instead of a when block //e.g. add an additional parameter to python scripts to let python choose on which environment it should execute the script (not that good, as the script should be as generic as possible) //e.g. just put the execute script step in both steps (not that good --> do not repeat yourself) //e.g. create to environment.yaml files and use different files for different jenkins (not that good --> ugly) @@ -85,6 +86,19 @@ } } + stage('Detect Jenkins Environment EMEA') { + try{ + mail subject: env.JOB_NAME + ' - ' + env.BRANCH_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}" + } + } } post {