Back to index
Summary
Modifies an environment.projectNameStringrequiredThe name for the project that must be unique among all projects. environmentNameStringrequiredThe name of the environment. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. environmentEnabledBooleanoptionalTrue to enable the environment. newNameStringoptionalThe new name for an existing object that is being renamed. reservationRequiredBooleanoptionalTrue to allow run using reservation only. rollingDeployEnabledBooleanoptionalTrue to enable support for rolling deploy on this environment. rollingDeployTypeStringoptionalThe type of rolling deploy type supported by the environment. Possible values: "batch" , "phase" |
Usage
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.modifyEnvironment( projectName: "test-projectName", environmentName: "test-environmentName" /* optional arguments */ )