refactor(ops/pipelines): Move step up in the pipeline
This step is independent of the build result and can be scheduled at the beginning while pipeline eval is still in progress. Change-Id: I2ee268e4c333efa654dcb12c0b1562b43231d241 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5044 Tested-by: BuildkiteCI Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: ezemtsov <eugene.zemtsov@gmail.com>
This commit is contained in:
parent
4b9bd8afd7
commit
a4aabaff68
1 changed files with 15 additions and 14 deletions
|
@ -15,6 +15,21 @@ steps:
|
||||||
build:
|
build:
|
||||||
message: "Verification triggered by ${BUILDKITE_COMMIT}"
|
message: "Verification triggered by ${BUILDKITE_COMMIT}"
|
||||||
|
|
||||||
|
# Create a revision number for the current commit for builds on
|
||||||
|
# canon.
|
||||||
|
#
|
||||||
|
# This writes data back to Gerrit using the Buildkite agent
|
||||||
|
# credentials injected through a git credentials helper.
|
||||||
|
#
|
||||||
|
# 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'"
|
||||||
|
command: |
|
||||||
|
git -c 'credential.helper=gerrit-creds' \
|
||||||
|
push origin "HEAD:refs/r/$(git rev-list --count --first-parent HEAD)"
|
||||||
|
|
||||||
|
# Generate & upload dynamic build steps
|
||||||
- label: ":llama:"
|
- label: ":llama:"
|
||||||
key: "pipeline-gen"
|
key: "pipeline-gen"
|
||||||
command: |
|
command: |
|
||||||
|
@ -97,17 +112,3 @@ steps:
|
||||||
depends_on:
|
depends_on:
|
||||||
- step: ":duck:"
|
- step: ":duck:"
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|
||||||
# Create a revision number for the current commit for builds on
|
|
||||||
# canon.
|
|
||||||
#
|
|
||||||
# This writes data back to Gerrit using the Buildkite agent
|
|
||||||
# credentials injected through a git credentials helper.
|
|
||||||
#
|
|
||||||
# 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'"
|
|
||||||
command: |
|
|
||||||
git -c 'credential.helper=gerrit-creds' \
|
|
||||||
push origin "HEAD:refs/r/$(git rev-list --count --first-parent HEAD)"
|
|
||||||
|
|
Loading…
Reference in a new issue