From d447aaf59803bd131241a24bc1041dfe702a1415 Mon Sep 17 00:00:00 2001 From: Emmanuel Cazenave Date: Fri, 8 Jun 2018 18:31:59 +0200 Subject: [PATCH] use git to find commit author (#24240) --- src/eo/Utils.groovy | 6 ++---- 1 file 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 ]) } }