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']] +} } }