diff --git a/Jenkinsfile b/Jenkinsfile index 0d7d881..ec717c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -106,6 +106,16 @@ } post { + failure { + emailext subject: "${env.JOB_NAME} build ${env.BUILD_ID} failed", + body: "QM report failed, see logs for details: ${env.BUILD_URL}", + to: 'BMW.CoCo.Dynatrace@nttdata.com, ermis.wieger@nttdata.com, Andreas.DB.Danzer@bmwgroup.com' +// to post to the teams channel "0 - APM Service Desk" just uncomment the following command: +// office365ConnectorSend webhookUrl: "https://bmwgroup.webhook.office.com/webhookb2/483edc00-c925-4672-8088-8299a0139fca@ce849bab-cc1c-465b-b62e-18f07c9ac198/JenkinsCI/9aca6923685b40f794134853fcbe88f1/ff31bcee-96b3-4481-9bd8-4f74180b263b", +// message: "QM report failed, see logs for details: ${env.BUILD_URL}", +// status: 'Failure', +// color: "d00000" + } always { cleanWs() }