From 4e6fc33b01d933a9624beb9ed91972c43f38fa11 Mon Sep 17 00:00:00 2001 From: Firassawan <35850933+Firassawan@users.noreply.github.com> Date: Mon, 9 Mar 2020 16:35:55 -0400 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index df01d0737..eeba6fef9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,5 +21,16 @@ pipeline { sh './mvnw package' } } + stage('Send email') { + def mailRecipients = "firassawan@icloud.com" + def jobName = currentBuild.fullDisplayName + + emailext body: '''${SCRIPT, template="groovy-html.template"}''', + mimeType: 'text/html', + subject: "[Jenkins] ${jobName}", + to: "${mailRecipients}", + replyTo: "${mailRecipients}", + recipientProviders: [[$class: 'CulpritsRecipientProvider']] +} } }