commit | 40eb6e73766694f209630ba566e26c98cc72d91c | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sat Oct 29 11:57:46 2016 +0200 |
committer | David Ostrovsky <david@ostrovsky.org> | Wed Nov 02 09:30:05 2016 +0100 |
tree | 555e7c9a89364558f1bdbb07206a2227ba5a344a | |
parent | 12b0267ecb0cc62b3c041e9a99a05eee3f23b1b6 [diff] |
Bazel: Stamp git version for core plugins Extend workspace status script to scan plugins directory and generate git version for each of them in stable-status.txt file. This can be used in plugin build rule to include this as plugin version info. Given that there is no way to dynamically merge manifest file content in Bazel[1] in java_binary rule, we have two options: either manipulate the plugin artifact file by appending the generated plugin version in post java_binary step in the META-INF/MANIFEST.MF file, or add VERSION resource file in the plugin and route reading plugin version to this file. TEST PLAN: $ bazel build :gen_version $ cat bazel-out/stable-status.txt STABLE_BUILD_COMMIT-MESSAGE-LENGTH-VALIDATOR_LABEL v2.13.1-2-g76b9115 STABLE_BUILD_COOKBOOK-PLUGIN_LABEL v2.13.2-12-g0162fc1 STABLE_BUILD_DOWNLOAD-COMMANDS_LABEL v2.13.1-4-g6326db6 STABLE_BUILD_GERRIT_LABEL v2.13.2-1329-g7c5917b-dirty [...] [1] https://github.com/bazelbuild/bazel/issues/2009 Change-Id: Ie900617e918246ebb54080517161021f3030fdab
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && buck build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 7 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-centos7[:version]
To run a Ubuntu 15.04 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-ubuntu15.04[:version]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.