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

Retry count not working in Git plugin 2.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • git-plugin
    • None

    Description

      stderr: fatal: Couldn't find remote ref refs/changes/12/34567/8
      fatal: The remote end hung up unexpectedly
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:981)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:920)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:187)
      at hudson.plugins.git.GitAPI.fetch(GitAPI.java:229)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:610)
      ... 10 more

      And there is no even attempt to retry...
      (I have local Git-mirror, which updates from Gerrit. Jenkins fetching from that mirror, so it's ok when ref not "ready" yet)
      In versions 1.* retrying works like a charm, so I have to roll back to 1.4

      Attachments

        Activity

          markewaite Mark Waite added a comment -

          Would this pull request improve the code (better to do it before I release 2.2.8, rather than after)?

          markewaite Mark Waite added a comment - Would this pull request improve the code (better to do it before I release 2.2.8, rather than after)?
          markewaite Mark Waite added a comment -

          Fix released in git plugin 2.3 10 Nov 2014

          markewaite Mark Waite added a comment - Fix released in git plugin 2.3 10 Nov 2014
          markewaite Mark Waite added a comment -

          Fix also included in git plugin 2.2.8 released 12 Nov 2014

          markewaite Mark Waite added a comment - Fix also included in git plugin 2.2.8 released 12 Nov 2014
          huberts Hubert S added a comment -

          Where do you set the Retry Count in jenkins for git to retry?

          huberts Hubert S added a comment - Where do you set the Retry Count in jenkins for git to retry?

          I don't think there's a way to customize it on a per job basis, but you can set a global value in "Manage Jenkins" > "Configure System" > "SCM checkout retry count". HTH.

          luismbo Luís Oliveira added a comment - I don't think there's a way to customize it on a per job basis, but you can set a global value in "Manage Jenkins" > "Configure System" > "SCM checkout retry count". HTH.

          People

            ndeloof Nicolas De Loof
            sapone Sergey Mylnikov
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: