Files
gerrit/BUILD
Han-Wen Nienhuys dc255120cf Reinstate 214171ddda
bazel: generate the workspace version from the volatile status.

To work across bazel 0.3.1 and 0.3.2, we should grep both volatile and
stable status files for the magic version string.

Change-Id: I48361374a8d9cda1e7a5b5db4e147bc49b4452a3
2016-10-24 14:47:44 +02:00

23 lines
601 B
Python

load('//tools/bzl:pkg_war.bzl', 'pkg_war')
genrule(
name = 'gen_version',
stamp = 1,
cmd = ("cat bazel-out/volatile-status.txt bazel-out/stable-status.txt | " +
"grep STABLE_BUILD_GERRIT_LABEL | cut -d ' ' -f 2 > $@"),
outs = ['version.txt'],
visibility = ['//visibility:public'],
)
genrule(
name = "LICENSES",
srcs = ["//Documentation:licenses.txt"],
cmd = "cp $< $@",
outs = ["LICENSES.txt"],
visibility = ['//visibility:public'],
)
pkg_war(name = 'gerrit')
pkg_war(name = 'headless', ui = None)
pkg_war(name = 'release', ui = 'ui_optdbg_r', context = ['//plugins:core'])