Back to index
Summary
Modifies tasks in a stage or a gate to create a group of parallel tasks or adds them to an existing group. The default error handling for group tasks isstopOnError
or to add them into an existing group.projectNameStringrequiredThe name for the project that must be unique among all projects. pipelineNameStringoptionalThe name of the pipeline. stageNameStringoptionalName of the stage to which this task belongs to. gateTypeStringoptionalThe type of the gate. Possible values: "POST" , "PRE" groupNameStringoptionalThe name of the group task. groupRunTypeStringoptionalThe type of the sub task run for a group task. If serial then all tasks are run in serial, otherwise - in parallel (by default). Possible values: "parallel" , "serial" releaseNameStringoptionalThe name of the release. taskNamesArray<Unknown>optionalTasks to put into the group. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createTaskGroup( projectName: "test-projectName" /* optional arguments */ )