forked from aws/aws-cdk
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pipelines): step dependencies (aws#18256)
Allows users to specify step dependencies and closes aws#17945. Usage: ```ts const firstStep = new pipelines.ManualApprovalStep('B'); const secondStep = new pipelines.ManualApprovalStep('A'); secondStep.addStepDependency(firstStep); ``` And ```ts // Step A will depend on step B and step B will depend on step C const orderedSteps = pipelines.Step.sequence([ new pipelines.ManualApprovalStep('C'); new pipelines.ManualApprovalStep('B'); new pipelines.ManualApprovalStep('A'); ]); ``` ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
4 changed files
with
106 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters