diff options
Diffstat (limited to 'nix/buildkite')
-rw-r--r-- | nix/buildkite/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nix/buildkite/default.nix b/nix/buildkite/default.nix index a3e9da956da3..ac349f2bd549 100644 --- a/nix/buildkite/default.nix +++ b/nix/buildkite/default.nix @@ -323,6 +323,7 @@ rec { # TODO(tazjin): Turn into hard-failure after 2022-10-01. , postBuild ? null + , skip ? false }: let parent = overridableParent parentOverride; @@ -346,7 +347,8 @@ rec { label needsOutput parent - parentLabel; + parentLabel + skip; # //nix/buildkite is growing a new feature for adding different # "build phases" which supersedes the previous `postBuild` @@ -386,7 +388,7 @@ rec { let step = { label = ":gear: ${cfg.label} (from ${cfg.parentLabel})"; - skip = if cfg.alwaysRun then false else cfg.parent.skip or false; + skip = if cfg.alwaysRun then false else cfg.skip or cfg.parent.skip or false; depends_on = lib.optional (buildEnabled && !cfg.alwaysRun && !cfg.needsOutput) |