Skip to content

Commit

Permalink
Fix JENKINS-20215
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slide committed Oct 24, 2013
1 parent 81f1315 commit f9fd0ce
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -632,7 +632,8 @@ private void addUserTriggeringTheBuild(AbstractBuild<?, ?> build, Set<InternetAd
if (adrs != null) {
addAddressesFromRecipientList(recipientAddresses, ccAddresses, adrs, env, listener);
} else {
listener.getLogger().println("Failed to send e-mail to " + user.getFullName() + " because no e-mail address is known, and no default e-mail domain is configured");
listener.getLogger().println("The user does not have a configured email address, trying the user's id");
addAddressesFromRecipientList(recipientAddresses, ccAddresses, user.getId(), env, listener);
}
}
}
Expand Down

0 comments on commit f9fd0ce

Please sign in to comment.