createTaskGroup

On this page
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 is stopOnError or to add them into an existing group.
projectName
Stringrequired
The name for the project that must be unique among all projects.
pipelineName
Stringoptional
The name of the pipeline.
stageName
Stringoptional
Name of the stage to which this task belongs to.
gateType
Stringoptional
The type of the gate.
Possible values: "POST", "PRE"
groupName
Stringoptional
The name of the group task.
groupRunType
Stringoptional
The 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"
releaseName
Stringoptional
The name of the release.
taskNames
Array<Unknown>optional
Tasks 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 */ )