createEnvironment

On this page
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

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 */ )