diff --git a/calculate-buildkite-steps.py b/calculate-buildkite-steps.py index ebe712ade..92bf39ee1 100755 --- a/calculate-buildkite-steps.py +++ b/calculate-buildkite-steps.py @@ -116,7 +116,11 @@ try: 'group': group, 'steps': [ { - 'command': f'nix build --no-link -L ".#hydraJobs.{job.name}"', + 'command': textwrap.dedent(f''' + set -ueo pipefail + resultPath=$(nix build --print-out-paths --no-link -L ".#hydraJobs.{job.name}") + attic push afnix-ci $$resultPath || true + '''), 'label': ".".join(job.path), 'key': job.drv_hash(), 'depends_on': [ d.drv_hash() for d in deps[job] ],