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

Triggering downstream pipeline from a replayed one ends in a NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None
    • Jenkins 2.91
      Pipeline 2.5
      Pipeline: API 2.25

      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
      

            Unassigned Unassigned
            ljbd Łukasz Dudek
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: