init commit
parent
e02c3f8cce
commit
de3f3bc96f
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue