diff options
author | Vincent Ambo <mail@tazj.in> | 2021-12-19T16·24+0300 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-12-19T21·23+0000 |
commit | 4ad94b9cf82177975b04f5de23ddaba35b2f6683 (patch) | |
tree | aeb4d4a07f9bfa96be8c0f25195497b9c8c7281b | |
parent | 736ef8ce4101245a2fa4b05a76103d37fd829903 (diff) |
feat(ops/pipelines): annotate patchset builds with Gerrit URLs r/3313
If available, provide a link back to Gerrit on the overview page of a build. Uses the default style (i.e. style unset), which makes it non-intrusive visually. Change-Id: I4271d589d548015b75762fd0584f3958bfcc53e5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4442 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
-rw-r--r-- | ops/pipelines/static-pipeline.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ops/pipelines/static-pipeline.yaml b/ops/pipelines/static-pipeline.yaml index 9f9a93c65814..4924569b62d8 100644 --- a/ops/pipelines/static-pipeline.yaml +++ b/ops/pipelines/static-pipeline.yaml @@ -8,6 +8,12 @@ steps: - label: ":llama:" command: | set -ue + + if test -n "$${GERRIT_CHANGE_URL-}"; then + echo "This is a build of [cl/$$GERRIT_CHANGE_ID]($$GERRIT_CHANGE_URL) (at patchset #$$GERRIT_PATCHSET)" | \ + buildkite-agent annotate + fi + nix-build -A ops.pipelines.depot -o pipeline --show-trace # Steps need to be uploaded in reverse order because pipeline |