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

Git plugin needs a better error diagnosis when failing to check out

    XMLWordPrintable

Details

    Description

      An user reported the following error in the IRC, where he fails to fetch from origin. As you can see, the Git plugin is not reporting the output from Git (nor the exit code), which makes trobule-shooting unnecessarily hard.

      In case of a failure, it should report the output and exit code.

      Checkout:workspace / /Users/administrator/Documents/Jenkins/jobs/FLOW3 raise submodules in Base distribution/workspace - hudson.remoting.LocalChannel@35b5a4ca
      Using strategy: Default
      Last Built Revision: Revision e94111b7f46946051dda9ff1ca30e2c0299e025c (origin/master)
      Checkout:workspace / /Users/administrator/Documents/Jenkins/jobs/FLOW3 raise submodules in Base distribution/workspace - hudson.remoting.LocalChannel@35b5a4ca
      Fetching changes from the remote Git repository
      Fetching upstream changes from ssh://review.typo3.org/FLOW3/Distributions/Base
      ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
      ERROR: Could not fetch from any repository
      FATAL: Could not fetch from any repository
      hudson.plugins.git.GitException: Could not fetch from any repository
      	at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:852)
      	at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:812)
      	at hudson.FilePath.act(FilePath.java:757)
      	at hudson.FilePath.act(FilePath.java:739)
      	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:812)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1182)
      	at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:521)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      	at hudson.model.Run.run(Run.java:1362)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:145)
      

      Attachments

        Issue Links

          Activity

            People

              abayer Andrew Bayer
              kohsuke Kohsuke Kawaguchi
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: