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 with no permission to view…

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

Luckily, i finally found this post:

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


Post a Comment

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