Skip to content

Commit

Permalink
Add bazel version in the BCR presubmit job label
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy committed Jan 30, 2024
1 parent 1616315 commit 687a835
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buildkite/bazel-central-registry/bcr_presubmit.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ def add_presubmit_jobs(module_name, module_version, task_configs, pipeline_steps
label = bazelci.PLATFORMS[platform_name]["emoji-name"] + " {0}@{1} {2}".format(
module_name, module_version, task_config["name"] if "name" in task_config else ""
)
# The bazel version should always be set in the task config due to https://github.com/bazelbuild/bazel-central-registry/pull/1387
# But fall back to empty string for more robustness.
bazel_version = task_config.get("bazel", "")
if bazel_version:
label = "(:bazel: {}) ".format(bazel_version) + label
command = (
'%s bcr_presubmit.py %s --module_name="%s" --module_version="%s" --task=%s'
% (
Expand Down

0 comments on commit 687a835

Please sign in to comment.