Plugin owners stable-3.2 branch build with Bazel<!-- Managed by Jenkins Job Builder -->
false
false
false
false
true
20
-1
20
-1
hudson.model.Item.Discover:anonymous
hudson.model.Item.Read:anonymous
hudson.model.Item.ExtendedRead:anonymous
2
origin
+refs/heads/*:refs/remotes/origin/*
https://gerrit.googlesource.com/a/plugins/owners
gerrit.googlesource.com
gerrit
+refs/heads/*:refs/remotes/gerrit/*
https://gerrit.googlesource.com/a/gerrit
gerrit.googlesource.com
origin/stable-3.2
false
false
Default
false
1
true
false
true
false
true
10
H/50 * * * *
false
#!/bin/bash -e
echo "machine gerrit.googlesource.com login $GS_GIT_USER password $GS_GIT_PASS">> ~/.netrc
chmod 600 ~/.netrc
#!/bin/bash -e
case "stable-3.2" in
stable-2.16|stable-3.2)
. set-java.sh 8
;;
*)
. set-java.sh 11
;;
esac
git checkout -fb stable-3.2 gerrit/stable-3.2
git submodule update --init
git read-tree -u --prefix=plugins/owners-plugin origin/stable-3.2
git fetch --tags origin
ln -s plugins/owners-plugin/owners-common .
pushd plugins && ln -s owners-plugin/owners owners-plugin/owners-a* . && popd
for file in external_plugin_deps.bzl package.json
do
if [ -f plugins/owners-plugin/$file ]
then
cp -f plugins/owners-plugin/$file plugins/
fi
done
TARGETS=$(echo "plugins/owners plugins/owners-a*" | sed -e 's/{name}/owners/g')
java -fullversion
bazelisk version
bazelisk build $TARGETS
for target in $TARGETS
do
bazelisk test $target/... //tools/bzl:always_pass_test
done
for JAR in $(find bazel-bin/plugins/ -name owners*.jar)
do
PLUGIN_VERSION=$(git describe --always origin/stable-3.2)
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-a*.jar*
false
false
false
true
true
false
**/*non_stamped*
60
GS_GIT_USER
GS_GIT_PASS
gerrit.googlesource.com