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

NullPointerException in BuildNameSetter.setup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • Jenkins 1.642.4, build-name-setter 1.6.0

      Similar NPE on all of our jobs using build name setter:

      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.NullPointerException
      at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setUp(BuildNameSetter.java:41)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:655)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      project=hudson.maven.MavenModuleSet@19c9e8a[player-services-test]
      project.getModules()=[hudson.maven.MavenModule@1209012[player-services-test/com.sonos.services:player-services-test][player-services-test/com.sonos.services:player-services-test][relativePath:], hudson.maven.MavenModule@23fe5f[player-services-test/com.sonos.services:sonos-test][player-services-test/com.sonos.services:sonos-test][relativePath:sonos-test], hudson.maven.MavenModule@89efd9[player-services-test/com.sonos.services:sonos-test-dependencies][player-services-test/com.sonos.services:sonos-test-dependencies][relativePath:sonos-test-dependencies]]
      project.getRootModule()=hudson.maven.MavenModule@1209012[player-services-test/com.sonos.services:player-services-test][player-services-test/com.sonos.services:player-services-test][relativePath:]
      FATAL: null
      java.lang.NullPointerException
      at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setUp(BuildNameSetter.java:41)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:655)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)

      Build Name: #${BUILD_NUMBER}-${ENV,var="STREAM"}

            le0 Lev Mishin
            codyslee Cody Lee
            Votes:
            16 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: