• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins version = 1.420
      Promoted builds plugin version = 2.2

      I created two bare bones test projects to replicate:

      1. BUG TEST - promoter - Does nothing, but has a promotion which must be manually approved, and which triggers a parametrized build of another project (See screenshot)
      2. BUG TEST - downstream - Does nothing at all.

      When I promote the first project, I expect the second to run. Instead I get:

      Started by upstream project "BUG TEST - promoter/promotion/GoldStarPromotions" build number 5
      FATAL: null
      java.lang.NullPointerException
      	at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:85)
      	at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46)
      	at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188)
      	at hudson.model.Run.run(Run.java:1371)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:175)
      

      If any further information would be helpful please let me know.

          [JENKINS-10342] Build triggered by promotion fails

          sogabe added a comment -

          changed component to downstream-buildview plugin.

          sogabe added a comment - changed component to downstream-buildview plugin.

          Roy Truelove added a comment - - edited

          I should note that I'm also getting an error when instead of using "Trigger parameterized builds on other projects" I use "Trigger / call builds on other projects"

          java.lang.IllegalArgumentException: promotion
          	at hudson.maven.ModuleName.fromString(ModuleName.java:92)
          	at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:258)
          	at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:106)
          	at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:1984)
          	at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:84)
          	at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46)
          	at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188)
          	at hudson.model.Run.run(Run.java:1371)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:175)
          

          Roy Truelove added a comment - - edited I should note that I'm also getting an error when instead of using "Trigger parameterized builds on other projects" I use "Trigger / call builds on other projects" java.lang.IllegalArgumentException: promotion at hudson.maven.ModuleName.fromString(ModuleName.java:92) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:258) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:106) at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:1984) at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:84) at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188) at hudson.model.Run.run(Run.java:1371) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:175)

          Roy Truelove added a comment -

          Had to uninstall downstream-buildview to move forward.

          Roy Truelove added a comment - Had to uninstall downstream-buildview to move forward.

          chris yate added a comment -

          I'm experiencing a very similar problem, Jenkins 1.443, Promoted Builds 2.4

          chris yate added a comment - I'm experiencing a very similar problem, Jenkins 1.443, Promoted Builds 2.4

          Ben Dean added a comment -

          Having same issue with:

          • Jenkins: 1.461
          • Downstream Build View: 1.7
          • Promoted builds: 2.5

          Stacktrace:

          java.lang.NullPointerException
          	at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:85)
          	at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46)
          	at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188)
          	at hudson.model.Run.run(Run.java:1429)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:239)
          

          Ben Dean added a comment - Having same issue with: Jenkins: 1.461 Downstream Build View: 1.7 Promoted builds: 2.5 Stacktrace: java.lang.NullPointerException at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:85) at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)

          Same Here:

          Parameterized Build : 2.13
          downstream-buildview : 1.7
          Jenkins : 1.461
          Promoted Builds : 2.5

          13:37:57 Started by upstream project "Packaging/promotion/ReadyToDeploy" build number 12
          13:37:57 FATAL: null
          13:37:57 java.lang.NullPointerException
          13:37:57 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:85)
          13:37:57 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46)
          13:37:57 at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188)
          13:37:57 at hudson.model.Run.run(Run.java:1408)
          13:37:57 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          13:37:57 at hudson.model.ResourceController.execute(ResourceController.java:88)
          13:37:57 at hudson.model.Executor.run(Executor.java:238)

          Barrett Strausser added a comment - Same Here: Parameterized Build : 2.13 downstream-buildview : 1.7 Jenkins : 1.461 Promoted Builds : 2.5 13:37:57 Started by upstream project "Packaging/promotion/ReadyToDeploy" build number 12 13:37:57 FATAL: null 13:37:57 java.lang.NullPointerException 13:37:57 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:85) 13:37:57 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46) 13:37:57 at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188) 13:37:57 at hudson.model.Run.run(Run.java:1408) 13:37:57 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 13:37:57 at hudson.model.ResourceController.execute(ResourceController.java:88) 13:37:57 at hudson.model.Executor.run(Executor.java:238)

          Same Here:

          Parameterized Build : 2.14
          downstream-buildview : 1.7
          Jenkins : 1.464
          Promoted Builds : 2.4

          Started by upstream project "ZZZZ_15.X/promotion/RELEASE" build number 27
          FATAL: promotion
          java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:354)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:117)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2221)
          at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:84)
          at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46)
          at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188)
          at hudson.model.Run.run(Run.java:1429)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:239)

          Victor Martinez added a comment - Same Here: Parameterized Build : 2.14 downstream-buildview : 1.7 Jenkins : 1.464 Promoted Builds : 2.4 Started by upstream project "ZZZZ_15.X/promotion/RELEASE" build number 27 FATAL: promotion java.lang.IllegalArgumentException: promotion at hudson.maven.ModuleName.fromString(ModuleName.java:97) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:354) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:117) at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2221) at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:84) at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188) at hudson.model.Run.run(Run.java:1429) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:239)

          Kyle Leinen added a comment -

          Still receiving this:

          downstream-buildview = 1.8
          Jenkins = 1.491
          Promoted Builds = 2.8
          Parameterized Trigger = 2.16

          11:07:14 Started by upstream project "xxxxxxxx/promotion/Deployed" build number 2
          11:07:14 FATAL: null
          11:07:14 java.lang.NullPointerException
          11:07:14 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:85)
          11:07:14 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46)
          11:07:14 at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188)
          11:07:14 at hudson.model.Run.execute(Run.java:1497)
          11:07:14 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          11:07:14 at hudson.model.ResourceController.execute(ResourceController.java:88)
          11:07:14 at hudson.model.Executor.run(Executor.java:236)

          I see there is a pull request in Git to have this fixed, but it is over 8 months old. Any chance of getting this in?

          Kyle Leinen added a comment - Still receiving this: downstream-buildview = 1.8 Jenkins = 1.491 Promoted Builds = 2.8 Parameterized Trigger = 2.16 11:07:14 Started by upstream project "xxxxxxxx/promotion/Deployed" build number 2 11:07:14 FATAL: null 11:07:14 java.lang.NullPointerException 11:07:14 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:85) 11:07:14 at org.jvnet.hudson.plugins.DownstreamBuildViewUpdateListener.onStarted(DownstreamBuildViewUpdateListener.java:46) 11:07:14 at hudson.model.listeners.RunListener.fireStarted(RunListener.java:188) 11:07:14 at hudson.model.Run.execute(Run.java:1497) 11:07:14 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 11:07:14 at hudson.model.ResourceController.execute(ResourceController.java:88) 11:07:14 at hudson.model.Executor.run(Executor.java:236) I see there is a pull request in Git to have this fixed, but it is over 8 months old. Any chance of getting this in?

          Hannes Kogler added a comment -

          @Roy

          I got the same error message like you:

           
          ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          	at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          	at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          	at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          	at hudson.model.Run.execute(Run.java:1567)
          	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          	at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          	at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          	at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          	at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          	at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          	at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          	at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          	at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          	... 9 more
          

          but I don't have the downstream-buildview plugin installed!

          my system:
          ----------
          Jenkins = 1.506
          Promoted Builds = 2.9
          Parameterized Trigger = 2.17
          XTrigger Plug-in = 0.53

          Hannes Kogler added a comment - @Roy I got the same error message like you: ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958) at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59) at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599) at hudson.model.Run.execute(Run.java:1567) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) Caused by: java.lang.IllegalArgumentException: promotion at hudson.maven.ModuleName.fromString(ModuleName.java:97) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123) at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340) at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359) at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73) at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53) at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34) at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288) at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100) at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147) ... 9 more but I don't have the downstream-buildview plugin installed! my system: ---------- Jenkins = 1.506 Promoted Builds = 2.9 Parameterized Trigger = 2.17 XTrigger Plug-in = 0.53

            Unassigned Unassigned
            roytruelove Roy Truelove
            Votes:
            11 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: