X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Farmband%2Fbuild.sh;h=a058ca158d467bdce7b2a73f557b497d4990dfc3;hb=50e9b87f746bf4be89617c3ead6e0117b1e52be8;hp=26c46d2fc2bac6ac2f29ff0ebad8bb4791be93d6;hpb=245ae419189c55b46918053b9284b47d13dff5ab;p=releng.git diff --git a/jjb/armband/build.sh b/jjb/armband/build.sh index 26c46d2fc..a058ca158 100755 --- a/jjb/armband/build.sh +++ b/jjb/armband/build.sh @@ -12,8 +12,15 @@ set -o errexit set -o nounset set -o pipefail +export TERM="vt220" + +echo "Host info: $(hostname) $(hostname -I)" + cd $WORKSPACE +# Armband requires initializing git submodules (e.g. for Fuel's clean_cache.sh) +make submodules-init + # remove the expired items from cache test -f $WORKSPACE/ci/clean_cache.sh && $WORKSPACE/ci/clean_cache.sh $CACHE_DIRECTORY @@ -24,8 +31,10 @@ if [[ "$JOB_NAME" =~ "daily" ]]; then echo "Checking to see if we already built and stored Armband Fuel ISO for this commit" curl -s -o $LATEST_ISO_PROPERTIES http://$GS_URL/latest.properties 2>/dev/null +fi - # get metadata of latest ISO +# get metadata of latest ISO +if grep -q OPNFV_GIT_SHA1 $LATEST_ISO_PROPERTIES 2>/dev/null; then LATEST_ISO_SHA1=$(grep OPNFV_GIT_SHA1 $LATEST_ISO_PROPERTIES | cut -d'=' -f2) LATEST_ISO_URL=$(grep OPNFV_ARTIFACT_URL $LATEST_ISO_PROPERTIES | cut -d'=' -f2) else