Back to index
Summary
Retrieves a task by its name.projectNameStringrequiredThe name for the project that must be unique among all projects. stageNameStringoptionalName of the stage to which this task belongs to. taskNameStringrequiredThe name of the task. gateTypeStringoptionalThe type of the gate. Possible values: "POST" , "PRE" pipelineNameStringoptionalThe name of the pipeline. releaseNameStringoptionalThe name of the release. timeZoneStringoptionalThe time zone to use when interpreting times. validateBooleanoptionalIf passed 1, then all validations check if the definition is complete and valid. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.getTask( projectName: "test-projectName", taskName: "test-taskName" /* optional arguments */ )