Jenkins email-ext RequesterRecipientProvider always empty

This one was hard to track down. I couldn’t figure out why email-ext [$class: ‘RequesterRecipientProvider’] kept being empty on my declarative pipeline.

Looking at console output for given run, printed message was:

Not sending mail to user noreply@github.com with no permission to view…

An attempt to send an e-mail to empty list of recipients, ignored.

Luckily, i finally found this post:
https://issues.jenkins-ci.org/browse/JENKINS-4350

If you have a similar setup, i.e. Github + (multi-branch) pipeline + email-ext, then odds are that you need to do the following:

  • in Jenkins, click on your pipeline > Configure
  • Go to section “Branch Sources” > Github > Behaviors > click on “Add” butotn and add option “Use commit author in changelog” as per below
  • Click on Apply

That’s it! This did the trick for me and after that, Github requester email address was correctly retrieved and emails flew through nicely

sources

Post a Comment

Your email is never published nor shared. You're allow to say what you want...