Back to index
Summary
Modifies an existing pipeline.projectNameStringrequiredThe name for the project that must be unique among all projects. pipelineNameStringrequiredThe name of the pipeline. assigneesForSkipStageArray<Unknown>optionalA list of users who can skip stages at runtime. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. disableMultipleActiveRunsBooleanoptionalBoolean flag showing if option to run multiple pipelines simultaneously is disabled. disableRestartBooleanoptionalTrue to disable restart the pipeline. enabledBooleanoptionalTrue to enable the pipeline. newNameStringoptionalNew name for an existing object that is being renamed. overrideWorkspaceBooleanoptionalIf true and workspaceName is not null, then all tasks use pipeline's workspace. pipelineRunNameTemplateStringoptionalTemplate used to determine the default name for pipelines on startup. releaseNameStringoptionalThe name of the release. skipStageModeStringoptionalThe flag to indicate if stages can be skipped at runtime. Possible values: "DISABLED" , "ENABLED" , "RESTRICTED" typeStringoptionalType of pipeline. Possible values: "COMMAND_CENTER" , "STANDARD" workspaceNameStringoptionalThe name of the default workspace for this pipeline. |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.modifyPipeline( projectName: "test-projectName", pipelineName: "test-pipelineName" /* optional arguments */ )