TEST PLAN: $ bazel build release Install bazel-bin/release.war and verify that the versions of the core plugins are reported correctly: commit-message-length-validator: v2.13.1-2-g76b911 download-commands: v2.13.2-5-gd632d64 hooks: v2.13.2-7-gf27c7e7 replication: v2.13.2-17-g531ed1 reviewnotes: v2.13.1-7-g45f6975 Change-Id: Iaceeeb1daafd7455c8d8a3673682d1ab9e65d8ef
23 lines
507 B
Python
23 lines
507 B
Python
load('//tools/bzl:genrule2.bzl', 'genrule2')
|
|
|
|
CORE = [
|
|
'commit-message-length-validator',
|
|
'download-commands',
|
|
'hooks',
|
|
'replication',
|
|
'reviewnotes',
|
|
'singleusergroup'
|
|
]
|
|
|
|
genrule2(
|
|
name = 'core',
|
|
srcs = ['//plugins/%s:%s.jar' % (n, n) for n in CORE],
|
|
cmd = 'mkdir -p $$TMP/WEB-INF/plugins;' +
|
|
'for s in $(SRCS) ; do ' +
|
|
'ln -s $$ROOT/$$s $$TMP/WEB-INF/plugins;done;' +
|
|
'cd $$TMP;' +
|
|
'zip -qr $$ROOT/$@ .',
|
|
outs = [ 'core.zip' ],
|
|
visibility = ['//visibility:public'],
|
|
)
|