feat(ops/pipelines): Upload post-build steps in static pipeline

Change-Id: I5ce6d51837c734951fe10c4f21806cf0fc57ed23
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5048
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: ezemtsov <eugene.zemtsov@gmail.com>
This commit is contained in:
Vincent Ambo 2022-01-22 14:45:00 +03:00 committed by clbot
parent 5a88e47b71
commit cb107c4fbe

View file

@ -95,6 +95,21 @@ steps:
exit 1
fi
# After duck, on success, upload and run any post-build steps that
# were output by the dynamic pipeline.
- label: ":arrow_heading_down:"
depends_on:
- step: ":duck:"
allow_failure: false
command: |
set -ueo pipefail
buildkite-agent artifact download "pipeline/*" .
find ./pipeline -name 'post-chunk-*.json' | tac | while read chunk; do
buildkite-agent pipeline upload $$chunk
done
# After duck, on success, create a gcroot if the build branch is
# canon.
#