Back to index
Summary
Creates a wait dependency for a stage or task.projectNameStringrequiredThe name for the project that must be unique among all projects. allowSkipBooleanoptionalThe flag to indicate if a dependency can be skipped at runtime. assigneesForSkipArrayoptionalA list of assignees who can skip a dependency at runtime. dependentGateTypeStringoptionalThe type of dependent gate. Possible values: "POST" , "PRE" dependentPipelineNameStringoptionalThe name of the dependent pipeline. dependentProjectNameStringoptionalThe name of the dependent project. dependentReleaseNameStringoptionalThe name of the dependent release. dependentStageNameStringoptionalThe name of the dependent stage. dependentTaskNameStringoptionalThe name of the dependent task. gateTypeStringoptionalThe type of gate. Possible values: "POST" , "PRE" pipelineNameStringoptionalThe name of the pipeline. releaseNameStringoptionalThe name of the release. stageNameStringoptionalThe name of the stage. taskNameStringoptionalThe name of the task. waitDependencyNameStringoptionalThe name of the wait dependency. waitForTriggeredPipelinesBooleanoptionalThe flag to indicate that dependency should be created on all triggered pipelines. waitForTriggeredReleasesBooleanoptionalThe flag to indicate that dependency should be created on all triggered releases. |
Usage
Perl
$cmdr->createWaitDependency( "test-projectName" # projectName # optionals );
ectool
ectool createWaitDependency \ "test-projectName" `# projectName` \ # optionals
Examples
Perl
For triggered pipelines:
$cmdr->createWaitDependency(Default, {pipelineName => "Pipeline A", stageName => "DEV", taskName => "Task 1", waitForTriggeredPipelines => 1});
For dependent pipelines:
$cmdr->createWaitDependency(Default, {pipelineName => "Pipeline A", stageName => "DEV", taskName => "Task 1", dependentPipelineName => "Pipeline B" dependentStageName ==> "QA" });
ectool
For triggered pipelines:
ectool createWaitDependency Default --pipelineName "Pipeline A" --stageName "DEV" --taskName "Task 1" --waitForTriggeredPipelines 1
For dependent pipelines:
ectool createWaitDependency Default --pipelineName "Pipeline A" --stageName "DEV" --taskName "Task 1" --dependentPipelineName "Pipeline B" --dependentStageName "QA"