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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With