Skip to content

Commit b48ff22

Browse files
authored
docs(pipelines): point Step.sequence users to addStepDependency for more customization (#18561)
---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent f8e6599 commit b48ff22

File tree

1 file changed

+4
-0
lines changed
  • packages/@aws-cdk/pipelines/lib/blueprint

1 file changed

+4
-0
lines changed

packages/@aws-cdk/pipelines/lib/blueprint/step.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ import { FileSet, IFileSetProducer } from './file-set';
1313
export abstract class Step implements IFileSetProducer {
1414
/**
1515
* Define a sequence of steps to be executed in order.
16+
*
17+
* If you need more fine-grained step ordering, use the `addStepDependency()`
18+
* API. For example, if you want `secondStep` to occur after `firstStep`, call
19+
* `secondStep.addStepDependency(firstStep)`.
1620
*/
1721
public static sequence(steps: Step[]): Step[] {
1822
for (let i = 1; i < steps.length; i++) {

0 commit comments

Comments
 (0)