Help! Jenkins Global Http Proxy doesn't work for GitSCM to connect to Remote Repo

I configured 192.168.71.59:8080 in the Jenkins Global Http Proxy Configuration. As you can see in the screen shot, you could find the configuration has been set up.
“using GIT_ASKPASS to set credentials Git-cred
Setting http proxy: 192.168.71.59:10809”

However, Github SCM still seems to use the incorrect proxy that I set up yesterday to connect to remote Repo. And checkout GitSCM is prior to the execution of JenkinsFile as per the pipeline overview. Thus this issue cannot be solved by adding proxy setting for Git in JenkinsFile.
“Failed to connect to 192.168.71.57 port 10809: Refused Connection”.

Pls help me with this. Thanks.

Can you post your Jenkins Global Http Proxy Configuration here?

This issue is caused by the command
git config --global http.proxy “http://192.168.71.57:10809”. configured in the last pipeline that I run.
This command made the proxy setting shared across different pipelines overriding the Global Http Proxy Setting.

1 Like