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

NullPointerException if no sites are configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • assembla-plugin
    • None

      According to this Stack Overflow question (http://stackoverflow.com/questions/11443748/builds-from-github-failing), there is a NullPointerException during checkout.

      Building in workspace /var/lib/jenkins/jobs/SweetyHigh-Staging/workspace
      Checkout:workspace / /var/lib/jenkins/jobs/SweetyHigh-Staging/workspace - hudson.remoting.LocalChannel@46ffed1d
      Using strategy: Default
      Last Built Revision: Revision a40cbe653169bc73c445f39e09dcd8cfe66e5fe7 (origin/master)
      Fetching changes from 1 remote Git repository
      Fetching upstream changes from git@github.com:Sweety-High/sweetyhigh.git
      Commencing build of Revision a40cbe653169bc73c445f39e09dcd8cfe66e5fe7 (origin/master)
      Checking out Revision a40cbe653169bc73c445f39e09dcd8cfe66e5fe7 (origin/master)
      hudson.util.IOException2: Failed to parse changelog
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:600)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
      at hudson.model.Run.execute(Run.java:1488)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:236)
      
      Caused by: java.lang.NullPointerException
      at jenkins.plugin.assembla.AssemblaSCMListener.onChangeLogParsed(AssemblaSCMListener.java:32)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:598)
      ... 6 more
      

      From a brief look at the code, it appears that this occurs because the "site" chosen is null:
      https://github.com/jenkinsci/assembla-plugin/blob/master/src/main/java/jenkins/plugin/assembla/AssemblaSCMListener.java#L32

      I don't use the plugin, but I imagine that this happens if the plugin has been installed but no sites have been configured in the global settings.

            lucamilanesio Luca Domenico Milanesio
            orrc Christopher Orr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: