Re: Aborting pipeline from a plugin

2024-03-25 Thread Zbynek Konecny
Thanks, that works! On Sat, 23 Mar 2024 at 08:41, Basil Crow wrote: > On Fri, Mar 22, 2024 at 2:11 PM zbyne...@gmail.com > wrote: > > What is the correct way to abort pipeline programmatically? > > See > https://javadoc.jenkins.io/plugin/workflow-step-api/org/jenkinsci/plugins/workflow/steps/Fl

Re: Aborting pipeline from a plugin

2024-03-23 Thread Basil Crow
On Fri, Mar 22, 2024 at 2:11 PM zbyne...@gmail.com wrote: > What is the correct way to abort pipeline programmatically? See https://javadoc.jenkins.io/plugin/workflow-step-api/org/jenkinsci/plugins/workflow/steps/FlowInterruptedException.html. -- You received this message because you are subsc

Aborting pipeline from a plugin

2024-03-22 Thread zbyne...@gmail.com
Hi, I've been trying to fix a bug in the scmSkip plugin where pipeline job is marked as aborted, but does not actually stop. I found 4 ways to stop a WorkflowRun * calling interrupt on either executor (getExecutor or getOneOffExecutor) -- effectively what the plugin does right now, it does not