| I can confirm the same issue. I noticed something else that is interesting, and probably has the same cause. Iif you "Rebuild" the first Pipeline, (that is, using the Rebuild plugin), then the second will be triggered and run without issue. However, if you "Rebuild" the second Pipeline... then you also get the NPE:
Started by upstream project "pipelines/bitbucket-write/CI-pipeline" build number 417
originally caused by:
java.lang.NullPointerException
at org.jenkinsci.plugins.workflow.cps.replay.ReplayCause.getOriginal(ReplayCause.java:66)
at org.jenkinsci.plugins.workflow.cps.replay.ReplayCause.print(ReplayCause.java:74)
at hudson.model.Cause$UpstreamCause.print(Cause.java:322)
at hudson.model.Cause$UpstreamCause.print(Cause.java:298)
at hudson.model.BuildListener.started(BuildListener.java:49)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:279)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
So my workaround is... if I want another run of: the first -> "Rebuild" the second -> "Replay" |