Skip to content

Commit

Permalink
Add 'depends_on' to CommandStep (#7)
Browse files Browse the repository at this point in the history
We have a requirement for certain steps to be dependent on each other,
without relying on static waits.
  • Loading branch information
LaurieGreen authored Sep 24, 2024
1 parent 995afec commit 1d86dba
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ class BuildkitePipeline implements ConfigurableEnvironment {
model.key = key
}

/**
* Make this step depend on the completion of another step
*/
void dependsOn(String dependsOn) {
model.depends_on = dependsOn
}

/**
* Add a Buildkite plugin to this step.
*
Expand Down

0 comments on commit 1d86dba

Please sign in to comment.