Skip to content

[JENKINS-49601] Triggering downstream pipeline from a replayed one ends in a NullPointerException #1401

@jenkins-infra-bot

Description

@jenkins-infra-bot

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions