createEnvironment

Back to index

Summary

Creates a new environment.
projectName
Stringrequired
The name for the project that must be unique among all projects.
environmentName
Stringrequired
The name of the environment.
applicationName
Stringoptional
Create environment from the specified application.
applicationProjectName
Stringoptional
The application's project name.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
environmentEnabled
Booleanoptional
True to enable the environment.
reservationRequired
Booleanoptional
True to allow run using reservation only.
rollingDeployEnabled
Booleanoptional
True to enable support for rolling deploy on this environment.
rollingDeployType
Stringoptional
The 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

Examples

Perl

$cmdr->createEnvironment("Default", "Web Server", {environmentEnabled => true, description => "Web Services", rollingDeployEnabled => true});

ectool

ectool createEnvironment "Default" "Web Server" --environmentEnabled true --description "Web Server" --rollingDeployEnabled true