commit | 88483ed218520b2b811a50cd7972a37ddc93e393 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sat Feb 15 09:41:59 2020 +0100 |
committer | David Ostrovsky <david.ostrovsky@gmail.com> | Sat Feb 15 09:57:20 2020 +0000 |
tree | 0ef91038b4826f79e781fca7aac8e15fe68e9f53 | |
parent | 3c953acc7a117d96209a9c763fbf652f63598748 [diff] |
Bazel: Update time attribute of file entries in plugin artifact Due to this Bazel issue: [1] non .class file entries are normalized in singlejar Bazel utility. As the consequence even JavaScript and HTML files have the timestamp: 2010-01-01 00:00. This makes it problematic to refresh the plugin artifacts in browser because of the cache if a new plugin version is deployed in Gerrit server. To rectify, touch the content of the plugin artifact in stamp action. The 'touch' command uses the system default timezone if none is supplied. This makes zip files dependent on the timezone of the generating machine. Zip by default stores extended attributes (eg. ctime, atime) on Unix systems. These can be further sources of non-determinism, so switch it off with --no-extra. [1] https://github.com/bazelbuild/bazel/issues/10789 Bug: Issue 12349 Change-Id: Ifcb027f42c20f785f14e9933c061af27285e99c4
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 Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel 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.