Plugin scripting/scala-provider/master Bazel build for Gerrit/stable-3.0<!-- 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/scripting/scala-provider
gerrit.googlesource.com
origin/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.0|stable-3.1|stable-3.2)
. set-java.sh 8
;;
*)
. set-java.sh 11
;;
esac
echo "Building plugin scala-provider/master with Gerrit/stable-3.0"
git remote add gerrit https://gerrit.googlesource.com/a/gerrit
git fetch gerrit stable-3.0
git checkout -fb stable-3.0 gerrit/stable-3.0
git submodule update --init
git read-tree -u --prefix=plugins/scala-provider origin/master
git fetch --tags origin
for file in external_plugin_deps.bzl package.json
do
if [ -f plugins/scala-provider/$file ]
then
cp -f plugins/scala-provider/$file plugins/
fi
done
TARGETS=$(echo "plugins/{name}:{name}" | sed -e 's/{name}/scala-provider/g')
java -fullversion
bazelisk version
bazelisk build $BAZEL_OPTS $TARGETS
BAZEL_OPTS="$BAZEL_OPTS --test_output errors \
--test_summary detailed --flaky_test_attempts 3 \
--test_verbose_timeout_warnings --build_tests_only \
--test_timeout 3600 \
--test_tag_filters=-flaky \
--test_env DOCKER_HOST=$DOCKER_HOST"
bazelisk test $BAZEL_OPTS //tools/bzl:always_pass_test plugins/scala-provider/...
for JAR in $(find bazel-bin/plugins/scala-provider -name scala-provider*.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/scala-provider/$(basename $JAR)
[ "$JAR" -ef "$DEST_JAR" ] || mv $JAR $DEST_JAR
echo "$PLUGIN_VERSION" > bazel-bin/plugins/scala-provider/$(basename $JAR-version)
done
#!/bin/bash -e
curl -L https://gerrit-review.googlesource.com/projects/plugins%2Fscripting%2Fscala-provider/config | \
tail -n +2 > bazel-bin/plugins/scala-provider/scala-provider.json
bazel-bin/plugins/scala-provider/scala-provider.jar*,bazel-bin/plugins/scala-provider/scala-provider.json
false
false
false
true
true
false
30
GS_GIT_USER
GS_GIT_PASS
gerrit.googlesource.com