Fix show_gerrit_review_link (#1994)
diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py
index 83f8bea..8f8ce90 100755
--- a/buildkite/bazelci.py
+++ b/buildkite/bazelci.py
@@ -3072,9 +3072,12 @@
if not host:
raise BuildkiteException("Couldn't get host name from %s" % git_repository)
commit = os.getenv("BUILDKITE_COMMIT")
- text = f"- The transformed code used in this pipeline can be found under https://{host}-review.googlesource.com/q/{commit}" \
- f"\n- Fetch the source with `git fetch https://{host}.googlesource.com/bazel {commit} && git checkout FETCH_HEAD`"
- commands = ["buildkite-agent annotate --style=info '{}' --context 'gerrit'".format(text)]
+ line1 = f"- The transformed code used in this pipeline can be found under https://{host}-review.googlesource.com/q/{commit}"
+ line2 = f"- Fetch the source with `git fetch https://{host}.googlesource.com/bazel {commit} && git checkout FETCH_HEAD`"
+ commands = [
+ "buildkite-agent annotate --style=info '{}' --context 'gerrit'".format(line1),
+ "buildkite-agent annotate --style=info '{}' --append --context 'gerrit'".format(line2),
+ ]
pipeline_steps.append(
create_step(
label=":pipeline: Print information about Gerrit Review Link",