Plugin owners stable-2.15 branch build with Bazel<!-- Managed by Jenkins Job Builder -->
false
20
-1
20
-1
hudson.model.Item.Discover:anonymous
hudson.model.Item.ExtendedRead:anonymous
hudson.model.Item.Read:anonymous
2
origin
+refs/heads/*:refs/remotes/origin/*
https://gerrit.googlesource.com/plugins/owners
gerrit
+refs/heads/*:refs/remotes/gerrit/*
https://gerrit.googlesource.com/gerrit
origin/stable-2.15
false
Default
false
true
false
false
10
true
false
false
false
H/50 * * * *
false
false
#!/bin/bash -e
git checkout -f gerrit/stable-2.15
git read-tree -u --prefix=plugins/owners-plugin origin/stable-2.15
ln -s plugins/owners-plugin/owners-common .
pushd plugins && ln -s owners-plugin/{owners,owners-autoassign} . && popd
if [ -f plugins/owners-plugin/external_plugin_deps.bzl ]
then
cp -f plugins/owners-plugin/external_plugin_deps.bzl plugins/
fi
TARGETS=$(echo "plugins/owners plugins/owners-autoassign" | sed -e 's/{name}/owners/g')
. set-java.sh 8
java -fullversion
bazelisk version
bazelisk build --spawn_strategy=standalone --genrule_strategy=standalone $TARGETS
for JAR in $(find bazel-bin/plugins/ -name owners*.jar)
do
PLUGIN_VERSION=$(git describe --always origin/stable-2.15)
echo -e "Implementation-Version: $PLUGIN_VERSION" > MANIFEST.MF
jar ufm $JAR MANIFEST.MF && rm MANIFEST.MF
DEST_JAR=bazel-bin/plugins/owners/$(basename $JAR)
[ "$JAR" -ef "$DEST_JAR" ] || mv $JAR $DEST_JAR
echo "$PLUGIN_VERSION" > bazel-bin/plugins/owners/$(basename $JAR-version)
done
bazel-bin/plugins/owners/owners.jar*,bazel-bin/plugins/owners/owners-autoassign.jar*
false
false
false
false
true
true
30