Fixes issues introduced in https://gerrit.fd.io/r/9080
- remove "set -u" which prohibits using "if" conditions with unbound
variables, such as the optional "hc_commit_id"
- pass settings argument to Honeycomb Maven build
Change-Id: I1e92e1e646c0e39a1ef574fced8cf4cf3246cf8a
Signed-off-by: selias <samelias@cisco.com>
notbuilt: true
prebuilders:
+ - provide-maven-settings:
+ settings-file: 'honeycomb-settings'
+ global-settings-file: 'global-settings'
- shell:
!include-raw-escape: include-raw-hc2vpp-csit-verify-prebuild.sh
#!/bin/bash
-set -xeu -o pipefail
+set -xe -o pipefail
# Parse optional arguments from gerrit comment trigger
for i in ${GERRIT_EVENT_COMMENT_TEXT}; do
cd honeycomb
ref=`git ls-remote -q | grep ${hc_commit_id} | awk '{print $2}'`
git fetch origin ${ref} && git checkout FETCH_HEAD
- mvn clean install -DskipTests -Dcheckstyle.skip -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r
+ mvn clean install -DskipTests -Dcheckstyle.skip -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}"
if [ $? != 0 ]; then
echo "Honeycomb infra build failed."
exit 1