Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - git global config not loaded

I have verified that the git repository is being accessed by my jenkins user through the build task, and set git config for jenkins user.name and user.email, which I have confirmed using:

su - jenkins
git config --global --get user.name
> Jenkins
git config --global --get user.email
> [email protected]

However, the jenkins build cannot create a tag and returns "*** Please tell me who you are.", which I'm aware is because of missing git user and email. Any ideas on where I can start?

The git repo is being accessed in context of jenkins user. Do I need to restart server or git or something else?

like image 888
Damien Roche Avatar asked Nov 24 '12 02:11

Damien Roche


2 Answers

At the Jenkins web page, go to Manage Jenkins-> Configure System, find the git settings.

You should be able to fill in "Global Config user.name Value" and "Global Config user.email Value" there.

like image 57
nos Avatar answered Nov 03 '22 00:11

nos


If you need to set the git credentials for one particular jenkins job, On your job configuration Under Source Code Management select Custom User-name/email address from Additional Behaviours. Put your user name and email here.

like image 23
Babeesh Avatar answered Nov 02 '22 23:11

Babeesh