|author||Joanna Wang <email@example.com>||Wed Apr 27 02:07:42 2022|
|committer||LUCI CQ <firstname.lastname@example.org>||Wed Apr 27 02:07:42 2022|
[buildbucket plugin] Add template build ID for retrying failed builds. Bug:1317687 Change-Id: I8a0c429cbc4d4a3892c63a0c58e214d943444353 Reviewed-on: https://chromium-review.googlesource.com/c/infra/gerrit-plugins/buildbucket/+/3600858 Reviewed-by: Aravind Vasudevan <email@example.com> Reviewed-by: Gavin Mak <firstname.lastname@example.org> Commit-Queue: Joanna Wang <email@example.com>
This plugin is configured via the
buildbucket.config file present in the repo‘s
refs/meta/config ref, as well as the same file in all repositories in the repo’s inheritance chain (up to and including All-Projects).
An example buildbucket.config is below:
[host] git = "chromium.googlesource.com" gerrit = "chromium-review.googlesource.com" [bucket "luci.chromium.try"] [bucket "luci.chrome.try"]
In the vast majority of cases, the
host.gerrit values are global to the entire host, so that stanza is specified in the All-Projects repo. Buckets and builders, on the other hand, are almost always very repository-specific, and so are only specified in “leaf” repositories which are not in any other repo's inheritance chain.
All changes to
buildbucket.config files are instantly reflected. There is no caching period or need to restart the server.
If your project doesn't want the “retry failed” button to show, you can disable it:
[option] hide-retry-button = true
If your project uses Quick Run/RTS and wants to surface the rocket ship icon 🚀 for builds using Quick Run, you can show it by setting
rts_was_used = true in the output properties (example recipe).
This plugin must be placed inside the Gerrit plugins directory:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit/plugins git clone https://chromium.googlesource.com/infra/gerrit-plugins/buildbucket
Run the commands below in web/.
For running unit tests execute:
For checking or fixing eslint formatter problems run:
make lint_test make lint_fix
and let the Dev Helper redirect from
Note: Testing is disabled for Safari due to this issue.