use git to find commit author (#24240)

This commit is contained in:
Emmanuel Cazenave 2018-06-08 18:31:59 +02:00
parent afc0626a34
commit d447aaf598
1 changed files with 2 additions and 4 deletions

View File

@ -15,12 +15,10 @@ def mail_notify(currentBuild, env, email) {
recipients: email, sendToIndividuals: true
])
} else {
author = sh(returnStdout: true, script: "/usr/bin/git show -s --format='%ae' HEAD").trim()
step([
$class: 'Mailer', notifyEveryUnstableBuild: true,
recipients: emailextrecipients([
[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']
])
recipients: author, sendToIndividuals: true
])
}
}