-
Notifications
You must be signed in to change notification settings - Fork 204
Description
When a pipeline job is replayed and the replayed build triggers a downstream pipeline, the latter crashes with the following exception:
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:323) at hudson.model.Cause$UpstreamCause.print(Cause.java:299) at hudson.model.BuildListener.started(BuildListener.java:49) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:254) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:421) Finished: FAILURE
Originally reported by
ljbd, imported from: Triggering downstream pipeline from a replayed one ends in a NullPointerException
- status: Open
- priority: Minor
- component(s): workflow-cps-plugin
- resolution: Unresolved
- votes: 5
- watchers: 9
- imported: 2025-12-07
Raw content of original issue
When a pipeline job is replayed and the replayed build triggers a downstream pipeline, the latter crashes with the following exception:
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:323) at hudson.model.Cause$UpstreamCause.print(Cause.java:299) at hudson.model.BuildListener.started(BuildListener.java:49) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:254) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:421) Finished: FAILURE
environment
Jenkins 2.91<br/>
Pipeline 2.5<br/>
Pipeline: API 2.25
1 attachment
Reactions are currently unavailable
