Plugin aws-dynamodb-refdb 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/aws-dynamodb-refdb
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/aws-dynamodb-refdb
git read-tree -u --prefix=plugins/aws-dynamodb-refdb origin/stable-3.3
git fetch --tags origin
for file in external_plugin_deps.bzl external_package.json
do
if [ -f plugins/aws-dynamodb-refdb/$file ]
then
cp -f plugins/aws-dynamodb-refdb/$file plugins/
fi
done
TARGETS=$(echo "plugins/{name}:{name}" | sed -e 's/{name}/aws-dynamodb-refdb/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/aws-dynamodb-refdb/...
for JAR in $(find bazel-bin/plugins/aws-dynamodb-refdb -maxdepth 1 -name aws-dynamodb-refdb*.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/aws-dynamodb-refdb/$(basename $JAR)
[ "$JAR" -ef "$DEST_JAR" ] || mv $JAR $DEST_JAR
echo "$PLUGIN_VERSION" > bazel-bin/plugins/aws-dynamodb-refdb/$(basename $JAR-version)
done
#!/bin/bash -e
curl -L https://gerrit-review.googlesource.com/projects/plugins%2Faws-dynamodb-refdb/config | \
tail -n +2 > bazel-bin/plugins/aws-dynamodb-refdb/aws-dynamodb-refdb.json
bazel-bin/plugins/aws-dynamodb-refdb/aws-dynamodb-refdb.jar, bazel-bin/plugins/aws-dynamodb-refdb/aws-dynamodb-refdb.jar-version, bazel-bin/plugins/aws-dynamodb-refdb/aws-dynamodb-refdb.json,
false
false
false
true
true
false
60
GS_GIT_USER
GS_GIT_PASS
gerrit.googlesource.com