createRollingDeployPhase

On this page
Back to index

Summary

Adds a rolling deploy phase to the specified environment.
projectName
Stringrequired
The name for the project that must be unique among all projects.
environmentName
Stringoptional
The name of the environment.
rollingDeployPhaseName
Stringrequired
The name of the rolling deploy phase.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
orderIndex
Integeroptional
Specifies the phase order (starts from 1).
phaseExpression
Stringoptional
A fixed text or text embedding property references that is evaluated into a logical TRUE or FALSE. An empty string, a 0 or false is interpreted as FALSE. Any other result string is interpreted as TRUE.
rollingDeployPhaseType
Stringoptional
The type of rolling deploy phase.
Possible values: "expression", "tagged", "untagged"

Usage

Groovy

import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.createRollingDeployPhase( projectName: "test-projectName", rollingDeployPhaseName: "test-rollingDeployPhaseName" /* optional arguments */ )