Tuesday, February 21, 2012

Git to Hudson: Please tell me who you are

Here is the error that Git gives Hudson sometimes:

Caused by: hudson.plugins.git.GitException: Error performing command: git.exe tag -a -f -m Hudson Build #4 hudson-seo-plugin-4
Command "git.exe tag -a -f -m Hudson Build #4 hudson-seo-plugin-4" returned status code 128:
*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.


And here is the solution:

  1. Go to your project
  2. Click Configure
  3. Under "Source Code Management" -> Git click on "Advanced" button
  4. Enter required data in "Config user.name Value" and "Config user.email Value"
  5. Click "Save" at the bottom of the page.
  6. Restart you build by clicking "Build Now"
 Please note that setting this information on Hudson (not job) level didn't help me.

No comments: