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

NullPointerException when manually triggering build

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: gerrit-trigger-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.417 running on Ubuntu 10.04.2 LTS 64-bit. Using Java HotSpot(TM) 64-Bit Server VM 1.6.0_24
    • Similar Issues:

      Description

      A build manually triggered with the gerrit-trigger plugin failed with the following output:

      Manually triggered by user anonymous for Gerrit: http://localhost:8010/1
      Checkout:workspace / /var/lib/jenkins/jobs/Playground-gerrit/workspace - hudson.remoting.LocalChannel@bd5d765
      Using strategy: Gerrit Trigger
      Checkout:workspace / /var/lib/jenkins/jobs/Playground-gerrit/workspace - hudson.remoting.LocalChannel@bd5d765
      Fetching changes from the remote Git repository
      Fetching upstream changes from ssh://xxxx@ubisrv1:29418/playground.git
      Commencing build of Revision 636920c6a48c59f5cdf1dee1d3346ecc1dde4821 (null)
      Checking out Revision 636920c6a48c59f5cdf1dee1d3346ecc1dde4821 (null)
      FATAL: null
      java.lang.NullPointerException
      at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.getFirstParent(GerritTriggerBuildChooser.java:108)
      at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser.prevBuildForChangelog(GerritTriggerBuildChooser.java:79)
      at hudson.plugins.git.GitSCM.computeChangeLog(GitSCM.java:1210)
      at hudson.plugins.git.GitSCM.access$700(GitSCM.java:57)
      at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1175)
      at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1120)
      at hudson.FilePath.act(FilePath.java:758)
      at hudson.FilePath.act(FilePath.java:740)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1120)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1182)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:537)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:425)
      at hudson.model.Run.run(Run.java:1376)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:146)

        Attachments

          Activity

            People

            • Assignee:
              rsandell rsandell
              Reporter:
              flatzoli Flat Zoli
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: