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 <eugene.zemtsov@gmail.com> Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
a4aabaff68
commit
f12ceaa622
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue