about summary refs log tree commit diff
path: root/ops/pipelines/static-pipeline.yaml
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-01-22T11·45+0300
committerclbot <clbot@tvl.fyi>2022-01-22T11·59+0000
commitcb107c4fbedf8ae358530839f257494267610cd6 (patch)
tree0a91c20f26f5b657b7e556d01c4c22a43a82c025 /ops/pipelines/static-pipeline.yaml
parent5a88e47b71ed20c4c0f0102f3ed3f8dc3ec4b454 (diff)
feat(ops/pipelines): Upload post-build steps in static pipeline r/3658
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>
Diffstat (limited to 'ops/pipelines/static-pipeline.yaml')
-rw-r--r--ops/pipelines/static-pipeline.yaml15
1 files changed, 15 insertions, 0 deletions
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.
   #