Skip to content

Commit

Permalink
docs(pipelines): point Step.sequence users to addStepDependency for m…
Browse files Browse the repository at this point in the history
…ore customization (#18561)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
kaizencc authored Jan 24, 2022
1 parent f8e6599 commit b48ff22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@aws-cdk/pipelines/lib/blueprint/step.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import { FileSet, IFileSetProducer } from './file-set';
export abstract class Step implements IFileSetProducer {
/**
* Define a sequence of steps to be executed in order.
*
* If you need more fine-grained step ordering, use the `addStepDependency()`
* API. For example, if you want `secondStep` to occur after `firstStep`, call
* `secondStep.addStepDependency(firstStep)`.
*/
public static sequence(steps: Step[]): Step[] {
for (let i = 1; i < steps.length; i++) {
Expand Down

0 comments on commit b48ff22

Please sign in to comment.