x
login Signup

How to disable a common single step across multiple jobs in an ElectricFlow project?

Need pointers on how to disable a common step across multiple jobs within a project, any info will be appreciated.

avatar image By geetha.a 0 asked Dec 13, 2018 at 05:56 PM
more ▼
(comments are locked)
10|750 characters needed characters left

1 answer: sort voted first

I haven't tested this thoroughly, but I think the following DSL will do the trick:

 project "Target Project Name",{
   getProcedures().each { proc ->
     getSteps(procedureName: proc.procedureName).each { st ->
       if (st.stepName == "Target Step Name") { step st.stepName, condition: "false" }
     }
   }
 }

avatar image By gregm 2k answered Dec 13, 2018 at 06:49 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.