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

Replay unapproved script throws exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None

      As a user without permission to approve a script, if I run a pipeline job with inline pipeline, it will be failed due to the script not being approved. If I try to "replay" it, instead of having a warning message saying it's not yet approved, I got an exception. Same if I try to reply as an admin.

      Exception extract:
      2020-08-13 10:25:02.279+0000 [id=19] WARNING o.j.p.w.cps.replay.ReplayAction#getExecutionBlocking: Error fetching execution for replay
      java.io.IOException: pipe-from-replay #2 did not yet start
      at org.jenkinsci.plugins.workflow.job.WorkflowRun$Owner.get(WorkflowRun.java:956)
      at org.jenkinsci.plugins.workflow.cps.replay.ReplayAction.getExecutionBlocking(ReplayAction.java:127)
      at org.jenkinsci.plugins.workflow.cps.replay.ReplayAction.isReplayableSandboxTest(ReplayAction.java:167)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)

            Unassigned Unassigned
            wfollonier Wadeck Follonier
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: