Status: Resolved (View Workflow)
Win Server 2012
I am using Jenkins in conjunction with the Active Directory plugin, so users can login with their normail domain password.
The users in Jenkins appear with the name from the AD (so the full name, with spaces etc.) and they don't have an email address.
When setting email-ext to send an email to requestors of buils, it is still using the full name rather than the ID to generate an email.
If this is by design then I would suggest an improvement in checking that the email is at least valid and try generate one with the Jenkins id + suffix.
The error I get is:
Sending to requester
Failed to send e-mail to <name here> because no e-mail address is known, and no default e-mail domain is configured
I'm afraid the situation has worsened: since updating to Jenkins 1.536 (I was using 535 before) I always get a NPE:
Checking for pre-build
Executing pre-build step
Checking if email needs to be generated
If I go back to the Configure page for the project, the "Trigger" section is blank (see screenshot).
Code changed in jenkins
User: Alex Earl
When user doens't have a Mailer.UserProperty with the email address, just add the user id as a recipient and it will add the default suffix.
If user does not have a Mailer.UserProperty added, just use the user id and let the resolution of the email address try to take care of it.
Can you turn on debug mode in the global config and post the build log?