From f12ceaa6228f55f7b5a83062b147df694e72f841 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 22 Jan 2022 14:11:13 +0300 Subject: refactor(ops/pipelines): Use branches filter for canon-only steps Using this instead of a conditional leads to nicer output in the UI, but has no semantic difference. Change-Id: I5b368d663f417d256e4792d2d46b84fc50d42d0e Reviewed-on: https://cl.tvl.fyi/c/depot/+/5045 Reviewed-by: ezemtsov Tested-by: BuildkiteCI Autosubmit: tazjin --- ops/pipelines/static-pipeline.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ops/pipelines/static-pipeline.yaml') diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml index d1b42854cfce..cf3fc9d4fb38 100644 --- a/ops/pipelines/static-pipeline.yaml +++ b/ops/pipelines/static-pipeline.yaml @@ -24,7 +24,7 @@ steps: # Revision numbers are defined as the number of commits in the # lineage of HEAD, following only the first parent of merges. - label: ":git:" - if: "build.branch == 'refs/heads/canon'" + branches: "refs/heads/canon" command: | git -c 'credential.helper=gerrit-creds' \ push origin "HEAD:refs/r/$(git rev-list --count --first-parent HEAD)" @@ -106,7 +106,7 @@ steps: # since it happens after :duck: it should not affect the timing of # status reporting back to Gerrit. - label: ":anchor:" - if: "build.branch == 'refs/heads/canon'" + branches: "refs/heads/canon" command: | nix-build -A ci.gcroot --out-link /nix/var/nix/gcroots/depot/canon depends_on: -- cgit 1.4.1