summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Cazenave <ecazenave@entrouvert.com>2018-06-08 16:31:59 (GMT)
committerEmmanuel Cazenave <ecazenave@entrouvert.com>2018-06-11 08:05:06 (GMT)
commitd447aaf59803bd131241a24bc1041dfe702a1415 (patch)
treec67652a60a08ca9f720c0b3b4405c89e2465f4ab
parentafc0626a3461950379d4b5a53857bb238da02cad (diff)
downloadjenkins-lib-d447aaf59803bd131241a24bc1041dfe702a1415.zip
jenkins-lib-d447aaf59803bd131241a24bc1041dfe702a1415.tar.gz
jenkins-lib-d447aaf59803bd131241a24bc1041dfe702a1415.tar.bz2
use git to find commit author (#24240)wip/notifiy-mail-accurate-true
-rw-r--r--src/eo/Utils.groovy6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/eo/Utils.groovy b/src/eo/Utils.groovy
index 4fb06cd..100a3f2 100644
--- a/src/eo/Utils.groovy
+++ b/src/eo/Utils.groovy
@@ -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
])
}
}