• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • mercurial-plugin
    • None

      If a cache pull fails, there is an ungainly NPE later:

      Building remotely on ...
      [...] $ hg pull
      pulling from ...
      abort: error: Connection timed out
      ERROR: Failed to update /hudson/workdir/hgcache/...
      ERROR: Failed to use repository cache for ...
      java.lang.NullPointerException
      	at hudson.plugins.mercurial.MercurialSCM.cachedSource(MercurialSCM.java:661)
      	at hudson.plugins.mercurial.MercurialSCM.update(MercurialSCM.java:495)
      	at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:436)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1044)
      	at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
      	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
      	at hudson.model.Run.run(Run.java:1241)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:122)
      [...] $ hg incoming --quiet --bundle hg.bundle --template "<changeset node='{node}' author='{author|xmlescape}' rev='{rev}' date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n" --rev default
      abort: error: Connection timed out
      ERROR: Failed to determine incoming changes
      [...] $ hg log --rev . --template {node}
      

          [JENKINS-6548] NPE from MercurialSCM.cachedSource

          Code changed in hudson
          User: : jglick
          Path:
          trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/Cache.java
          trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java
          http://jenkins-ci.org/commit/32049
          Log:
          [FIXED JENKINS-6548] Secondary NPE after other cache failures.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/Cache.java trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java http://jenkins-ci.org/commit/32049 Log: [FIXED JENKINS-6548] Secondary NPE after other cache failures.

          Code changed in hudson
          User: : jglick
          Path:
          trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java
          http://jenkins-ci.org/commit/32050
          Log:
          JENKINS-6548 Restoring a bit of logging.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : jglick Path: trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java http://jenkins-ci.org/commit/32050 Log: JENKINS-6548 Restoring a bit of logging.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: