Plugin cfoauth master branch Bazel build for Gerrit stable-3.2<!-- Managed by Jenkins Job Builder -->
false
false
false
false
bazel-debian
false
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/cfoauth
gerrit.googlesource.com
*/master
false
false
false
false
Default
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 "master" in
stable-2.16|stable-3.2)
. set-java.sh 8
;;
*)
. set-java.sh 11
;;
esac
echo "Building plugin cfoauth/master with Gerrit/stable-3.2"
git remote show gerrit > /dev/null 2>&1 || git remote add gerrit https://gerrit.googlesource.com/a/gerrit
git fetch gerrit stable-3.2
git checkout -fb stable-3.2 gerrit/stable-3.2
git submodule update --init
git read-tree -u --prefix=plugins/cfoauth origin/master
git fetch --tags origin
for file in external_plugin_deps.bzl package.json
do
if [ -f plugins/cfoauth/$file ]
then
cp -f plugins/cfoauth/$file plugins/
fi
done
TARGETS=$(echo "plugins/{name}:{name}" | sed -e 's/{name}/cfoauth/g')
java -fullversion
bazelisk version
bazelisk build $BAZEL_OPTS $TARGETS
BAZEL_OPTS="$BAZEL_OPTS --flaky_test_attempts 3 \
--test_timeout 3600 \
--test_tag_filters=-flaky \
--test_env DOCKER_HOST=$DOCKER_HOST"
bazelisk test $BAZEL_OPTS //tools/bzl:always_pass_test plugins/cfoauth/...
for JAR in $(find bazel-bin/plugins/cfoauth -maxdepth 1 -name cfoauth*.jar)
do
PLUGIN_VERSION=$(git describe --always origin/master)
echo -e "Implementation-Version: $PLUGIN_VERSION" > MANIFEST.MF
jar ufm $JAR MANIFEST.MF && rm MANIFEST.MF
DEST_JAR=bazel-bin/plugins/cfoauth/$(basename $JAR)
[ "$JAR" -ef "$DEST_JAR" ] || mv $JAR $DEST_JAR
echo "$PLUGIN_VERSION" > bazel-bin/plugins/cfoauth/$(basename $JAR-version)
done
#!/bin/bash -e
curl -L https://gerrit-review.googlesource.com/projects/plugins%2Fcfoauth/config | \
tail -n +2 > bazel-bin/plugins/cfoauth/cfoauth.json
bazel-bin/plugins/cfoauth/cfoauth.jar, bazel-bin/plugins/cfoauth/cfoauth.jar-version, bazel-bin/plugins/cfoauth/cfoauth.json,
false
false
false
true
true
false
60
GS_GIT_USER
GS_GIT_PASS
gerrit.googlesource.com