Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (29.3k points)

I am trying to pull the code from GIT using GIT Plugin Jenkins and the job is running on a slave machine.

The MASTER system has

and in the SLAVE system, there is no http_proxy defined.

Whenever I am doing git clone locally in the SLAVE machine it works perfectly, however from Jenkins I haven't been successful.

It is throwing the following error:

Building remotely on SLAVE in workspace /data/test

 > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

 > /usr/bin/git config remote.origin.url # timeout=10

Fetching upstream changes from

 > /usr/bin/git --version # timeout=10

using GIT_ASKPASS to set credentials 

Setting http proxy:

 > /usr/bin/git fetch --tags --progress +refs/heads/*:refs/remotes/origin/*

ERROR: Error fetching remote repo 'origin'

hudson.plugins.git.GitException: Failed to fetch from

    at hudson.plugins.git.GitSCM.fetchFrom(

    at hudson.plugins.git.GitSCM.retrieveChanges(

    at hudson.plugins.git.GitSCM.checkout(

    at hudson.scm.SCM.checkout(

    at hudson.model.AbstractProject.checkout(

    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(

    at jenkins.scm.SCMCheckoutStrategy.checkout(

    at hudson.model.AbstractBuild$

    at hudson.model.Run.execute(


    at hudson.model.ResourceController.execute(


Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --progress +refs/heads/*:refs/remotes/origin/*" returned status code 128:


stderr: error: Failed connect to; Operation now in progress while accessing

Is it because the MASTER system trying to set HTTP proxy which is not present in the SLAVE system?

If yes, how to prevent it?

Or, is there something else I am missing?

1 Answer

0 votes
by (50.2k points)

This type of error occurs due to the issue with proxy this can be resolved by adding

Git URL to the No Proxy Host section this can be achieved by following these steps

Manage Jenkins -> Manage Plugins -> Advanced -> HTTP Proxy Configuration -> Added GIT URL in No Proxy Host field.

we need to do this because while pulling the code from git. Using Jenkins it was set by a proxy so to remove this we will add git url to no host proxy.

Try after adding this it will work fine.

Browse Categories