Well, I haven't found a solution, but I have found why the scheme we had
stopped working. Seems this error is being thrown whenever the first
triggering build runs:
RunListener failed
java.lang.NullPointerException
at hudson.model.Result.isBetterOrEqualTo(Result.java:130)
at
jenkins.triggers.ReverseBuildTrigger.shouldTrigger(ReverseBuildTrigger.java:139)
at
jenkins.triggers.ReverseBuildTrigger.access$000(ReverseBuildTrigger.java:89)
at
jenkins.triggers.ReverseBuildTrigger$RunListenerImpl.onCompleted(ReverseBuildTrigger.java:258)
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)
On Wednesday, May 24, 2017 at 10:22:56 AM UTC-4, Greg Smith wrote:
>
>
> We would like to trigger a multibranch pipeline build whenever a file at a
> URL changes. We had a mechanism that worked, but a recent update broke
> that mechanism.
>
> Here's what we had setup:
>
> URLTrigger used to trigger a Freestyle build, named "Stage1"
> Pipeline build that runs whenever "Stage1" build completes, called "Stage2"
> Pipeline build starts multibranch pipeline build in its script.
>
> This Rube Goldberg like series of steps were required because a Freestyle
> build can not start a Pipeline build, but a Pipeline build can be triggered
> by a Freestyle build. A multibranch pipeline build can not be triggered by
> a pipeline build, but a pipeline build can directly start a multibranch
> pipeline build.
>
> At least, these used to be the rules. We upgraded to the latest LTS
> release (2.46.1 -> 2.46.2) and the ability for a pipleline build to be
> triggered by the completion of a Freestyle build now seems to be gone.
>
> I can configure the Pipeline build to run when the Freestyle build
> complete, but it never actually triggers.
>
> Ugh -- was hoping someone might know what the current rules are, or point
> me to a jira / bug. I'm not even sure where to file such a problem report,
> as I'm not sure if this is core Jenkins function, or something to do with
> the pipeline plugins.
>
> Has anyone got a multibranch pipeline build triggered by a URL change?
> Maybe I need to completely redesign this workflow.
>
> Thanks much,
> Greg
>
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/fb5697a1-bf21-4002-baef-e7654ce290de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.