init commit

master
rforstner 2021-11-23 18:31:47 +01:00
parent e02c3f8cce
commit de3f3bc96f
1 changed files with 14 additions and 0 deletions

14
Jenkinsfile vendored
View File

@ -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 {