• 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

          Roy Truelove created issue -

          sogabe added a comment -

          changed component to downstream-buildview plugin.

          sogabe added a comment - changed component to downstream-buildview plugin.
          sogabe made changes -
          Component/s New: downstream-buildview [ 15699 ]
          Component/s Original: promoted-builds [ 15567 ]
          Roy Truelove made changes -
          Component/s New: promoted-builds [ 15567 ]
          Component/s Original: downstream-buildview [ 15699 ]
          Roy Truelove made changes -
          Description Original: I created two bare bones test projects to replicate:

          # *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)
          # *BUT TEST - downstream* - Does nothing at all.

          When I promote the first project, I expect the second to run and spit out env variables. Instead I get:

          {code}
          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)
          {code}

          If any further information would be helpful please let me know.
          New: I created two bare bones test projects to replicate:

          # *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)
          # *BUT TEST - downstream* - Does nothing at all.

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

          {code}
          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)
          {code}

          If any further information would be helpful please let me know.
          Roy Truelove made changes -
          Component/s New: downstream-buildview [ 15699 ]
          Component/s Original: promoted-builds [ 15567 ]

          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 made changes -
          Description Original: I created two bare bones test projects to replicate:

          # *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)
          # *BUT TEST - downstream* - Does nothing at all.

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

          {code}
          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)
          {code}

          If any further information would be helpful please let me know.
          New: I created two bare bones test projects to replicate:

          # *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)
          # *BUG TEST - downstream* - Does nothing at all.

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

          {code}
          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)
          {code}

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

          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

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

              Created:
              Updated: