Plugin scripting/groovy-provider/stable-3.4 Bazel build for Gerrit<!-- 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/scripting/groovy-provider
gerrit.googlesource.com
gerrit
+refs/heads/*:refs/remotes/gerrit/*
https://gerrit.googlesource.com/a/gerrit
gerrit.googlesource.com
origin/stable-3.4
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
. set-java.sh 11
git checkout -fb stable-3.4 gerrit/stable-3.4
git submodule update --init
rm -rf plugins/groovy-provider
git read-tree -u --prefix=plugins/groovy-provider origin/stable-3.4
git fetch --tags origin
for file in external_plugin_deps.bzl external_package.json
do
if [ -f plugins/groovy-provider/$file ]
then
cp -f plugins/groovy-provider/$file plugins/
fi
done
TARGETS=$(echo "plugins/{name}:{name}" | sed -e 's/{name}/groovy-provider/g')
java -fullversion
bazelisk version
bazelisk build $BAZEL_OPTS $TARGETS
bazelisk test $BAZEL_OPTS --test_env DOCKER_HOST=$DOCKER_HOST //tools/bzl:always_pass_test plugins/groovy-provider/...
for JAR in $(find bazel-bin/plugins/groovy-provider -maxdepth 1 -name groovy-provider*.jar)
do
PLUGIN_VERSION=$(git describe --always origin/stable-3.4)
echo -e "Implementation-Version: $PLUGIN_VERSION" > MANIFEST.MF
jar ufm $JAR MANIFEST.MF && rm MANIFEST.MF
DEST_JAR=bazel-bin/plugins/groovy-provider/$(basename $JAR)
[ "$JAR" -ef "$DEST_JAR" ] || mv $JAR $DEST_JAR
echo "$PLUGIN_VERSION" > bazel-bin/plugins/groovy-provider/$(basename $JAR-version)
done
#!/bin/bash -e
curl -L https://gerrit-review.googlesource.com/projects/plugins%2Fscripting%2Fgroovy-provider/config | \
tail -n +2 > bazel-bin/plugins/groovy-provider/groovy-provider.json
bazel-bin/plugins/groovy-provider/groovy-provider.jar*,bazel-bin/plugins/groovy-provider/groovy-provider.json
false
false
false
true
true
false
30
GS_GIT_USER
GS_GIT_PASS
gerrit.googlesource.com