createGate

On this page
Back to index

Summary

Creates a new gate for a stage.
projectName
Stringrequired
The name for the project that must be unique among all projects.
stageName
Stringrequired
Name of the stage to which this task belongs to.
gateType
Stringrequired
The type of the gate.
Possible values: "POST", "PRE"
condition
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.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
pipelineName
Stringoptional
The name of the pipeline.
precondition
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.
releaseName
Stringoptional
The name of the release.

Usage

Groovy

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