Back to index
Summary
Restart a pipeline run.flowRuntimeIdStringoptionalThe ID of the flow runtime. commentStringoptionalComment provided while restarting pipeline run which has completed with error. flowRuntimeNameStringoptionalThe name of the flow runtime. fromFailureBooleanoptionalUsed when taskName is a group. False to restart all subtasks or true to restart from failed subtask. Defaults to true. gateTypeStringoptionalThe type of the gate. Possible values: "POST" , "PRE" projectNameStringoptionalThe name of the project. stageNameStringoptionalThe name of a stage from which to restart a pipeline. taskNameStringoptionalThe name of a high-level task in the last active stage from which to restart a pipeline. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.restartPipelineRun( /* optional arguments */ )