about summary refs log tree commit diff
path: root/nix/buildkite
diff options
context:
space:
mode:
Diffstat (limited to 'nix/buildkite')
-rw-r--r--nix/buildkite/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/nix/buildkite/default.nix b/nix/buildkite/default.nix
index 6bf7feb8b09b..f8d69b23991c 100644
--- a/nix/buildkite/default.nix
+++ b/nix/buildkite/default.nix
@@ -159,7 +159,7 @@ in rec {
       splitExtraSteps = partition ({ postStep, ... }: postStep)
        (attrValues (mapAttrs (name: value: {
          inherit name value;
-         postStep = value ? prompt;
+         postStep = (value ? prompt) || (value.postBuild or false);
         }) (target.meta.ci.extraSteps or {})));
 
       mkExtraStep' = { name, value, ... }: mkExtraStep step name value;
@@ -238,6 +238,10 @@ in rec {
   #     confirmation. These steps always run after the main build is
   #     done and have no influence on CI status.
   #
+  #   postBuild (optional): If set to true, this step will run after
+  #     all primary build steps (that is, after status has been reported
+  #     back to CI).
+  #
   #   needsOutput (optional): If set to true, the parent derivation
   #     will be built in the working directory before running the
   #     command. Output will be available as 'result'.
@@ -280,7 +284,8 @@ in rec {
     prompt ? false,
     needsOutput ? false,
     branches ? null,
-    alwaysRun ? false
+    alwaysRun ? false,
+    postBuild ? false
   }@cfg: let
     parentLabel = parent.env.READTREE_TARGET;