How to setup some of the git global configuration ?

a common issue with git in  Jenkins environment is to set user and mail global config.

In fact, you can define some environment variables on Jenkins global configuration.  navigate to

Jenkins -> manage Jenkins -> global configuration

and select global properties:

Git global configuration on Jenkins platform

This setting corresponding to the following script on the shell side :

export GIT_COMMITTER_NAME=fdelorme
export GIT_COMMITTER_EMAIL=frederic.delorme@capgemini.com
export GIT_AUTHOR_NAME=fdelorme
export GIT_AUTHOR_EMAIL=frederic.delorme@capgemini.com

Publicités