Update Jenkinsfile

This commit is contained in:
Firassawan 2020-03-09 16:35:55 -04:00 committed by GitHub
parent 5397ee80cd
commit 4e6fc33b01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
Jenkinsfile vendored
View file

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