Back to index
Summary
Runs the specified pipeline. If the pipeline configuresdisableMultipleActiveRuns=
true
, only one active run of this pipeline is allowed at a time and attempts to start more than one results in an exception.pipelineNameStringrequiredThe name of the pipeline. projectNameStringrequiredThe name for the project that must be unique among all projects. credentialReferenceParametersArray<CredentialReferenceParameter>optionalList of credential parameters with references to existing credentials as parameter values. If the parameter value is a property reference then the credential would be resolved at runtime. parsedWebhookDataStringoptionalJSON with parsed webhook data to be set on a pipeline/release/procedure run. priorityStringoptionalThe priority of jobs launched by the pipeline. Possible values: "low" , "normal" , "high" , "highest" releaseNameStringoptionalThe name of the release. scheduleNameStringoptionalName for the schedule; must be unique among all schedules for the project. stagesToRunArray<Unknown>optionalOne or more stages to run in a pipeline. startingStageStringoptionalThe name of the starting stage. startingTaskStringoptionalThe name of the starting task. startingTaskStageStringoptionalThe name of the stage containing starting task. webhookDataStringoptionalThe webhook data to be set on the pipeline/release/procedure run. webhookHeadersStringoptionalThe webhook headers in JSON format to be set on the pipeline/release/procedure run. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.runPipeline( pipelineName: "test-pipelineName", projectName: "test-projectName" /* optional arguments */ )