Plugin owners stable-2.13 branch build with BUCK
<!-- 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.13
false
Default
false
true
false
false
10
true
false
false
false
H/50 * * * *
false
false
#!/bin/bash -e
# NOTE: All Gerrit plugins currently depend on, at a minimum
# the bucklets repo, and most plugins don't build outside the
# Gerrit tree, even with bucklets. As a result, we need to
# graft the plugin onto the Gerrit repo. We do this by checking
# out the proper version of Gerrit, removing the plugin if it
# exists, then use git read-tree to put the plugin we're
# building in place.
git checkout -f gerrit/stable-2.13
git read-tree -u --prefix=plugins/owners-plugin origin/stable-2.13
cd plugins && ln -s owners-plugin/owners* . && cd ..
cat plugins/owners-plugin/.buckconfig >> .buckconfig
TARGETS=$(echo "plugins/owners plugins/owners-autoassign" | sed -e 's/{owners}/owners/g')
. set-java.sh 8
buck build -v 3 $TARGETS
for JAR in $(find buck-out/gen/plugins/ -regex '.*/owners\(-autoassign\)*\.jar')
do
PLUGIN_VERSION=$(git describe --always origin/stable-2.13)
echo -e "Implementation-Version: $PLUGIN_VERSION" > MANIFEST.MF
zip -d $JAR META-INF/services/com.fasterxml.jackson.core.JsonFactory
jar ufm $JAR MANIFEST.MF && rm MANIFEST.MF
DEST_JAR=buck-out/gen/plugins/owners/$(basename $JAR)
[ "$JAR" -ef "$DEST_JAR" ] || mv $JAR $DEST_JAR
echo "$PLUGIN_VERSION" > buck-out/gen/plugins/owners/$(basename $JAR-version)
done
buck-out/gen/plugins/owners*/owners*.jar*,
false
false
false
true
true
30