diff options
author | Vincent Ambo <mail@tazj.in> | 2022-01-22T11·11+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-01-22T11·59+0000 |
commit | f12ceaa6228f55f7b5a83062b147df694e72f841 (patch) | |
tree | f95d563c39ae8c45f5224025956a227234eed315 /ops | |
parent | a4aabaff687cf0e4a6d0fe1851823a51b407f316 (diff) |
refactor(ops/pipelines): Use branches filter for canon-only steps r/3656
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 <eugene.zemtsov@gmail.com> Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'ops')
-rw-r--r-- | ops/pipelines/static-pipeline.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
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: |