Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49037

git clone does not retry if connection aborted

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins 2.60.1
      Git Plugin 3.7.0
      Git Client Plugin 2.7.0

      Some servers disconnect a git clone when too many concurrent connections are launched at once, which results in the job failing with a GitException. This is unfortunate, since it could instead retry a few minutes later and end up with a successful run.

      Example output of the exception:
      ERROR: Error fetching remote repo '<snip>'
      hudson.plugins.git.GitException: Failed to fetch from <server>
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:812)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1079)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1110)
      at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:130)
      at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:59)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:262)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:405)
      Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress <server> refs/changes/<change>" returned status code 128:
      stdout:
      stderr: key_load_public: invalid format
      Received disconnect from <ip address> port <port>: Too many concurrent connections
      Connection to <server> closed by remote host.
      fatal: Could not read from remote repository.

          [JENKINS-49037] git clone does not retry if connection aborted

          Bart Bialek added a comment -

          +1

          Bart Bialek added a comment - +1

          Quentin Nerden added a comment - This issue is the same as https://issues.jenkins-ci.org/browse/JENKINS-49077?jql=project%20%3D%20JENKINS%20AND%20status%20in%20(Open%2C%20%22In%20Progress%22%2C%20Reopened)%20AND%20component%20%3D%20workflow-cps-plugin

            Unassigned Unassigned
            jekeller Jacob Keller
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: