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

Pipeline builds can no longer be triggered by Freestyle builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • core
    • Jenkins LTS 2.46.3
      Pipeline Job 2.11

      We were using the ability to trigger a pipeline job from the completion of a Freestyle job. 

      This worked on 2.43.1, but broke on 2.43.2.  We upgraded to 2.43.3, just to make sure the problem was still there, and it is.

      In the Logs, we get the following error / stacktrace when the Freestyle build that should trigger the Pipeline build completes:

      May 27, 2017 8:57:33 PM WARNING hudson.model.listeners.RunListener report
      RunListener failed
      java.lang.NullPointerException
      	at hudson.model.Result.isBetterOrEqualTo(Result.java:130)
      	at jenkins.triggers.ReverseBuildTrigger.shouldTrigger(ReverseBuildTrigger.java:158)
      	at jenkins.triggers.ReverseBuildTrigger.access$000(ReverseBuildTrigger.java:90)
      	at jenkins.triggers.ReverseBuildTrigger$RunListenerImpl.onCompleted(ReverseBuildTrigger.java:277)
      	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
      	at hudson.model.Run.execute(Run.java:1773)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:405)
      
      

      We are aware that Freestyle builds can not trigger upstream Pipeline builds, but Pipeline builds used to be able to be triggered by defining "Build after other project completes – and it is that functionality that is now an issue in Jenkins Core 2.43.2 and higher in the LTS series.

            Unassigned Unassigned
            gregcovertsmith Greg Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: