From 099f36e5ee8b18126e006219153e3cf6fb6e7a50 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 5 Nov 2021 15:31:21 +0100 Subject: fix(ops/pipelines): Fix tagging of commit revisions 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 --- ops/pipelines/static-pipeline.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ops/pipelines/static-pipeline.yaml') diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml index 7e91a73439..2261b11b80 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)" -- cgit 1.4.1