Plugin its-phabricator stable-3.0 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
BAZEL_OPTS=--java_toolchain=//tools:error_prone_warnings_toolchain
false
true
true
true
false
2
plugin
+refs/heads/*:refs/remotes/plugin/*
https://gerrit.googlesource.com/a/plugins/its-phabricator
gerrit.googlesource.com
origin
+refs/heads/*:refs/remotes/origin/*
https://gerrit.googlesource.com/a/gerrit
gerrit.googlesource.com
base
+refs/heads/*:refs/remotes/base/*
https://gerrit.googlesource.com/a/plugins/its-base
gerrit.googlesource.com
plugin/stable-3.0
false
false
Default
false
1
true
false
false
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 8
git checkout origin/stable-3.0
git submodule update --init
rm -rf plugins/its-phabricator
rm -rf plugins/its-base
git read-tree -u --prefix=plugins/its-phabricator plugin/stable-3.0
git read-tree -u --prefix=plugins/its-base base/stable-3.0
git fetch --tags origin
rm -Rf bazel-bin
for file in external_plugin_deps.bzl package.json
do
if [ -f plugins/its-phabricator/$file ]
then
cp -f plugins/its-phabricator/$file plugins/
fi
done
TARGETS=$(echo "plugins/its-{name}:its-{name}" | sed -e 's/its-{name}/its-phabricator/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/its-phabricator/...
for JAR in $(find bazel-bin/plugins/its-phabricator -name its-phabricator*.jar)
do
PLUGIN_VERSION=$(git describe --always plugin/stable-3.0)
echo -e "Implementation-Version: $PLUGIN_VERSION" > MANIFEST.MF
jar ufm $JAR MANIFEST.MF && rm MANIFEST.MF
DEST_JAR=bazel-bin/plugins/its-phabricator/$(basename $JAR)
[ "$JAR" -ef "$DEST_JAR" ] || mv $JAR $DEST_JAR
echo "$PLUGIN_VERSION" > bazel-bin/plugins/its-phabricator/$(basename $JAR-version)
done
#!/bin/bash -e
curl -L https://gerrit-review.googlesource.com/projects/plugins%2Fits-phabricator/config | \
tail -n +2 > bazel-bin/plugins/its-phabricator/its-phabricator.json
bazel-bin/plugins/its-phabricator/its-phabricator.jar*, bazel-bin/plugins/its-phabricator/its-phabricator.json
false
false
false
true
true
false
30
GS_GIT_USER
GS_GIT_PASS
gerrit.googlesource.com