modified
parent
3c7e58f968
commit
db461248d1
|
|
@ -1,10 +1,10 @@
|
||||||
//not required right now as CN is reachable from EMEA as well
|
// not required right now as CN is reachable from EMEA as well
|
||||||
def loopEnvironments(environments) {
|
def loopEnvironments(environments) {
|
||||||
print env.JENKINS_URL
|
print env.JENKINS_URL
|
||||||
|
|
||||||
environments.each{key, val ->
|
environments.each{key, val ->
|
||||||
//Execute only if you are on the same environment
|
// Execute only if you are on the same environment
|
||||||
//not required right now as CN is reachable from EMEA as well
|
// not required right now as CN is reachable from EMEA as well
|
||||||
if(env.JENKINS_URL == environments."${key}"[3].'jenkins'){
|
if(env.JENKINS_URL == environments."${key}"[3].'jenkins'){
|
||||||
envname = environments."${key}"[0].'name'
|
envname = environments."${key}"[0].'name'
|
||||||
envurl = environments."${key}"[1].'env-url'
|
envurl = environments."${key}"[1].'env-url'
|
||||||
|
|
@ -23,7 +23,7 @@ pipeline {
|
||||||
ansiColor('xterm')
|
ansiColor('xterm')
|
||||||
}
|
}
|
||||||
|
|
||||||
//label libraryBuild is available in CN JAWS and ROW JAWS, therefore this one was used; no additional intents
|
// label libraryBuild is available in CN JAWS and ROW JAWS, therefore this one was used; no additional intents
|
||||||
// agent {label 'jaws-slaves'}
|
// agent {label 'jaws-slaves'}
|
||||||
agent {label 'jaws-slaves'}
|
agent {label 'jaws-slaves'}
|
||||||
|
|
||||||
|
|
@ -34,18 +34,18 @@ pipeline {
|
||||||
string(name: 'SLICES', defaultValue: 'dh', description: 'Enter h | d | t | y (without spaces or |) - writes the slices hourly, daily, total or year to date into ecxel. given in any order')
|
string(name: 'SLICES', defaultValue: 'dh', description: 'Enter h | d | t | y (without spaces or |) - writes the slices hourly, daily, total or year to date into ecxel. given in any order')
|
||||||
}
|
}
|
||||||
|
|
||||||
//here comes the trigger according to crontabs - jenkins is in UTC
|
// here comes the trigger according to crontabs - jenkins is in UTC
|
||||||
triggers {
|
triggers {
|
||||||
//every 1st of every month at 00:00
|
// every 1st of every month at 00:00
|
||||||
//cron('0 0 1 * *')
|
// cron('0 0 1 * *')
|
||||||
|
|
||||||
//every day at 08:00
|
// every day at 08:00
|
||||||
//cron('0 8 * * *')
|
// cron('0 8 * * *')
|
||||||
|
|
||||||
//every monday at 06:00
|
// every monday at 06:00
|
||||||
cron('0 5 * * 0-7')
|
cron('0 5 * * 0-7')
|
||||||
|
|
||||||
//parameterizedCron('0 10 * * * %PRESELECT=week;SLICES=tdhy')
|
// parameterizedCron('0 10 * * * %PRESELECT=week;SLICES=tdhy')
|
||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
|
|
@ -140,8 +140,8 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Only required once CN is not reachable from EMEA
|
// Only required once CN is not reachable from EMEA
|
||||||
//loopEnvironments(environments)
|
// loopEnvironments(environments)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -150,16 +150,15 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
tmp_body = "Please find the output of the daily QM-Report attached </br></br>${summary}"
|
|
||||||
emailext subject: env.JOB_NAME,
|
emailext subject: env.JOB_NAME,
|
||||||
mimeType: 'text/html',
|
mimeType: 'text/html',
|
||||||
body: tmp_body,
|
body: "Please find the output of the daily QM-Report attached </br></br>${summary}",
|
||||||
//to: 'michaela.jaeger@bmw.de, OOC-Support@bmwgroup.com, Andreas.DA.Danzer@partner.bmw.de',
|
// to: 'michaela.jaeger@bmw.de, OOC-Support@bmwgroup.com, Andreas.DA.Danzer@partner.bmw.de',
|
||||||
//to: 'rene.forstner@nttdata.com, Andreas.DA.Danzer@partner.bmw.de, linnea.bickeboeller@partner.bmwgroup.com',
|
// to: 'rene.forstner@nttdata.com, Andreas.DA.Danzer@partner.bmw.de, linnea.bickeboeller@partner.bmwgroup.com',
|
||||||
//to: 'rene.forstner@nttdata.com, stephan.oertelt@bmw.de, Mohammed.Abadel@bmw.de, michaela.jaeger@bmw.de',
|
// to: 'rene.forstner@nttdata.com, stephan.oertelt@bmw.de, Mohammed.Abadel@bmw.de, michaela.jaeger@bmw.de',
|
||||||
//to: 'rene.forstner@nttdata.com, ermis.wieger@nttdata.com, patryk.gudalewicz.bp@nttdata.com',
|
// to: 'rene.forstner@nttdata.com, ermis.wieger@nttdata.com, patryk.gudalewicz.bp@nttdata.com',
|
||||||
//to: 'patryk.gudalewicz.bp@nttdata.com',
|
// to: 'patryk.gudalewicz.bp@nttdata.com',
|
||||||
//to: 'rene.forstner@nttdata.com, ermis.wieger@nttdata.com, arnel.arnautovic@nttdata.com, patryk.gudalewicz.bp@nttdata.com, stephan.oertelt@bmw.de, Mohammed.Abadel@bmw.de, michaela.jaeger@bmw.de, OOC-Support@bmwgroup.com, Andreas.DB.Danzer@bmwgroup.com',
|
// to: 'rene.forstner@nttdata.com, ermis.wieger@nttdata.com, arnel.arnautovic@nttdata.com, patryk.gudalewicz.bp@nttdata.com, stephan.oertelt@bmw.de, Mohammed.Abadel@bmw.de, michaela.jaeger@bmw.de, OOC-Support@bmwgroup.com, Andreas.DB.Danzer@bmwgroup.com',
|
||||||
to: 'Arnel.Arnautovic@nttdata.com',
|
to: 'Arnel.Arnautovic@nttdata.com',
|
||||||
replyTo: 'coco-apm@bmw.de',
|
replyTo: 'coco-apm@bmw.de',
|
||||||
attachmentsPattern: '*.xlsx'
|
attachmentsPattern: '*.xlsx'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue