Back to index
Summary
Creates a new procedure for an existing project.projectNameStringrequiredThe name for the project that must be unique among all projects. procedureNameStringrequiredName for the procedure; must be unique within the project. credentialNameStringoptionalThe name of a credential to attach to this procedure. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. jobNameTemplateStringoptionalTemplate used to determine the default name of jobs launched from a procedure. resourceNameStringoptionalThe name of the default resource for this procedure. timeLimitStringoptionalMaximum amount of time the step can execute; abort if it exceeds this time. timeLimitUnitsStringoptionalUnits for step time limit: seconds, minutes, or hours. Possible values: "hours" , "minutes" , "seconds" workspaceNameStringoptionalThe name of the default workspace for this procedure. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createProcedure( projectName: "test-projectName", procedureName: "test-procedureName" /* optional arguments */ )