Back to index
Summary
Creates a new environment.projectNameStringrequiredThe name for the project that must be unique among all projects. environmentNameStringrequiredThe name of the environment. applicationNameStringoptionalCreate environment from the specified application. applicationProjectNameStringoptionalThe application's project name. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. environmentEnabledBooleanoptionalTrue to enable the environment. 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.createEnvironment( projectName: "test-projectName", environmentName: "test-environmentName" /* optional arguments */ )