feat(nix/buildkite): add meta.ci.buildkiteExtraStepArgs
This allows setting / overwriting arbitrary step arguments, such as setting [Retry attributes](https://buildkite.com/docs/pipelines/command-step#retry-attributes) for a specific readTree target. It's intended to be used for cases where modelling each and every option in a custom meta.ci attribute would be unfeasible. Change-Id: I3352d5353b26a41a16760a7df37cd5ffee1665bb Reviewed-on: https://cl.tvl.fyi/c/depot/+/8983 Autosubmit: flokli <flokli@flokli.de> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
f41b611761
commit
8b870c7ec9
1 changed files with 3 additions and 1 deletions
|
@ -86,7 +86,9 @@ rec {
|
||||||
depends_on = [ ":init:" ] ++ lib.optionals (target ? meta.ci.buildkiteExtraDeps) target.meta.ci.buildkiteExtraDeps;
|
depends_on = [ ":init:" ] ++ lib.optionals (target ? meta.ci.buildkiteExtraDeps) target.meta.ci.buildkiteExtraDeps;
|
||||||
} // lib.optionalAttrs (target ? meta.timeout) {
|
} // lib.optionalAttrs (target ? meta.timeout) {
|
||||||
timeout_in_minutes = target.meta.timeout / 60;
|
timeout_in_minutes = target.meta.timeout / 60;
|
||||||
};
|
# Additional arguments to set on the step.
|
||||||
|
# Keep in mind these *overwrite* existing step args, not extend. Use with caution.
|
||||||
|
} // lib.optionalAttrs (target ? meta.ci.buildkiteExtraStepArgs) target.meta.ci.buildkiteExtraStepArgs;
|
||||||
|
|
||||||
# Helper function to inelegantly divide a list into chunks of at
|
# Helper function to inelegantly divide a list into chunks of at
|
||||||
# most n elements.
|
# most n elements.
|
||||||
|
|
Loading…
Reference in a new issue