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 {