diff --git a/buildSrc/src/main/groovy/com/widen/plugins/buildkite/BuildkitePipeline.groovy b/buildSrc/src/main/groovy/com/widen/plugins/buildkite/BuildkitePipeline.groovy index d5fabeb..7027297 100644 --- a/buildSrc/src/main/groovy/com/widen/plugins/buildkite/BuildkitePipeline.groovy +++ b/buildSrc/src/main/groovy/com/widen/plugins/buildkite/BuildkitePipeline.groovy @@ -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. *