Add checks for environment values for AWS and Sonatype credentials

Change-Id: I2bae928e65acd7a2c04415c9d078c36cd7ce97e9
This commit is contained in:
Ray Milkey 2016-11-30 10:15:23 -08:00 committed by Thomas Vachuska
parent dc747af4a1
commit d6e2e44b88

View File

@ -100,6 +100,9 @@ function testEC2Access {
aux=$(mktemp)
trap "cat $aux; rm -f $aux; echo 'FAILED'" ERR
printf "Checking EC2 access... "
: "${AWS_ACCESS_KEY_ID:?AWS_ACCESS_KEY_ID must be set}"
: "${AWS_SECRET_ACCESS_KEY:?AWS_SECRET_ACCESS_KEY must be set}"
uploadToS3.py -v 1>$aux 2>&1
rm -f $aux
echo "OK"
@ -122,7 +125,8 @@ function testSonatypeAccessMvn {
}
function testSonatypeAccessRest {
#FIXME check SONATYPE_USER SONATYPE_PASSWORD
: "${SONATYPE_USER:?SONATYPE_USER must be set}"
: "${SONATYPE_PASSWORD:?SONATYPE_PASSWORD must be set}"
export ONOS_VERSION=1.2.3
printf "Checking Sonatype access via REST... "
pushd $ONOS_ROOT/tools/build/release-test >/dev/null