Hudson git failed to send build error message

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.

+6
git hudson
source share
3 answers

It looks like the guy who wrote this blog post was able to fix the problem you are facing. Although it doesn't look like it got into the plugin, you need to compile the plugin yourself.

+2
source share

You need to visit the People page (/ people /) and add an email address for this user (at / user / {username}). The git config email address is ignored by the git plugin.

+2
source share

git config --global writes to the global ~ / .gitconfig file .

Your problem is that the ~ used when entering git config does not match the ~ used by the user actually doing the Hudson job.

Check and make sure that the custom house is actually involved in completing Hudson's assignment.

+1
source share

All Articles