How to set up a git username to allow Hudson to send email to the user who commits the code?
I just follow the standard way to configure git user.name with "User Name (userid)", see below.
git config --global user.name "Euler XXXX (euler)"
git config --global user.email " euler.xxxx@server.com "
Then I pass the code to the git repository that runs the Hudson build. But I was unable to send the email euler.xxxx@server.com .
See Hudson's Journal as shown below:
... [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Fri Sep 10 15:05:51 CST 2010 [INFO] Final Memory: 3M/74M [INFO] ---- -------------------------------------------------------------------- **Failed to send e-mail to Euler XXXX (euler) because no e-mail address is known, and no default e-mail domain is configured** ...
In the Hudson configuration, I configured " LDAP Email Lookup ", which was provided by the Hudson LDAP email plugin.
As long as I configure user.name with userid , which is userid on my LDAP server, then the Hudson assembly can find the email address.
git hudson
user451784
source share