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
Perl
$cmdr->createEnvironment( "test-projectName", # projectName "test-environmentName" # environmentName # optionals );
ectool
ectool createEnvironment \ "test-projectName" `# projectName` \ "test-environmentName" `# environmentName` \ # optionals