From cb107c4fbedf8ae358530839f257494267610cd6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 22 Jan 2022 14:45:00 +0300 Subject: 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 Reviewed-by: ezemtsov --- ops/pipelines/static-pipeline.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ops') diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml index 4a844561e63d..ad887d0ff610 100644 --- a/ops/pipelines/static-pipeline.yaml +++ b/ops/pipelines/static-pipeline.yaml @@ -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. # -- cgit 1.4.1