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