Back to index
Summary
Creates a new workflow definition for a project.projectNameStringrequiredThe name for the project that must be unique among all projects. workflowDefinitionNameStringrequiredThe name of the workflow definition. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. workflowNameTemplateStringoptionalThe template used to name instances of this workflow definition. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createWorkflowDefinition( projectName: "test-projectName", workflowDefinitionName: "test-workflowDefinitionName" /* optional arguments */ )