Back to index
Summary
Starts a release. If the release pipeline configuresdisableMultipleActiveRuns= true
, only one active run of this release pipeline is allowed at a time and attempts to start more than one results in an exception.projectNameStringrequiredThe name for the project that must be unique among all projects. releaseNameStringrequiredThe name of the release. 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 release. Possible values: "low" , "normal" , "high" , "highest" scheduleNameStringoptionalName for the schedule; must be unique among all schedules for the project. stagesToRunArray<Unknown>optionalOne or more stages to run in a pipeline associated with the release. 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.startRelease( projectName: "test-projectName", releaseName: "test-releaseName" /* optional arguments */ )