createPipeline

Back to index

Summary

Creates a new pipeline for a project.
projectName
Stringrequired
The name for the project that must be unique among all projects.
pipelineName
Stringrequired
The name of the pipeline.
assigneesForSkipStage
Collectionoptional
A list of users who can skip stages at runtime.
description
Stringoptional
Comment text describing this object that is not interpreted at all by CloudBees CD/RO.
disableMultipleActiveRuns
Booleanoptional
Boolean flag showing if option to run multiple pipelines simultaneously is disabled.
disableRestart
Booleanoptional
True to disable restart the pipeline.
enabled
Booleanoptional
True to enable the pipeline.
overrideWorkspace
Booleanoptional
If true and workspaceName is not null, then all tasks use pipeline's workspace.
pipelineRunNameTemplate
Stringoptional
Template used to determine the default name for pipelines on startup.
releaseName
Stringoptional
The name of the release.
skipStageMode
Stringoptional
The flag to indicate if stages can be skipped at runtime.
Possible values: "DISABLED", "ENABLED", "RESTRICTED"
type
Stringoptional
Type of pipeline.
Possible values: "C", "R"
workspaceName
Stringoptional
The name of the default workspace for this pipeline.

Usage

Perl

$cmdr->createPipeline( "test-projectName", # projectName "test-pipelineName" # pipelineName # optionals );

ectool

ectool createPipeline \ "test-projectName" `# projectName` \ "test-pipelineName" `# pipelineName` \ # optionals

Examples

Perl

$cmdr->createPipeline("Default", "Web Server Image", {description => "Amazon"});

ectool

ectool createPipeline "Default" "Web Server Image" --description "Amazon"