diff options
author | Vincent Ambo <mail@tazj.in> | 2021-11-05T14·31+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-11-06T00·33+0000 |
commit | 099f36e5ee8b18126e006219153e3cf6fb6e7a50 (patch) | |
tree | 035d32c0ff2f16e8784d640e382de7493adb7649 /ops | |
parent | 674603f6c8b91ca121a9ebfd4bb9a43ca89c009e (diff) |
fix(ops/pipelines): Fix tagging of commit revisions r/3007
It seems that shell variables don't work as expected inside the Buildkite pipeline, so usage of variables has been removed. We also don't echo the revision anymore because of that, but it does still appear in the log of `git push`. Change-Id: I124e3b09af896da898f2a78715ed371651a1c5f8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3780 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'ops')
-rw-r--r-- | ops/pipelines/static-pipeline.yaml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml index 7e91a734398f..2261b11b80d0 100644 --- a/ops/pipelines/static-pipeline.yaml +++ b/ops/pipelines/static-pipeline.yaml @@ -28,9 +28,5 @@ steps: - label: ":git:" if: "build.branch == 'refs/heads/canon'" command: | - readonly REVISION=$(git rev-list --count --first-parent HEAD) - git -c 'credential.helper=/etc/secrets/buildkite-credential-helper' \ - push origin "HEAD:refs/r/${REVISION}" - - echo "Marked commit as r/${REVISION}" + push origin "HEAD:refs/r/$(git rev-list --count --first-parent HEAD)" |