Jenkins Docker - Make changes to gitconfig I have a self-hosted Gitea organization, and the way to access the repos requires some &quot;secret&quot; extraheader in .gitconfig. (2FA is also enabled)
When I look at Jenkins &quot;Configure System&quot; settings, under the &quot;Git plugin&quot; section, it seems that the only .gitconfig options I can change through the UI are &quot;user.name&quot; and &quot;user.email&quot;.
Is there any way I can change extra .gitconfig settings, such as adding http.[url].extraheader, or a way to run git config --global commands, before a git clone or git pull is performed?
As far as I can tell, there is no way to tweak arbitrary git config settings from within Jenkins.  You would have to tweak your git config on your build agents.  If you're using permanent agents, this would involve logging in as the jenkins user and running git config --global ....  If you're using docker build agents, then you would need to bake the git config settings into your image.