From e7936cbd593cdd41b7968125f0e150e119216f9c Mon Sep 17 00:00:00 2001 From: Troy Dai Date: Thu, 5 Apr 2018 09:32:26 -0700 Subject: [PATCH] Update publish script (#6012) 1. Add quotes in script 2. Upgrade azure-storage-blob dependencies --- scripts/ci/publish.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/ci/publish.sh b/scripts/ci/publish.sh index 2f82512df51..8c1841dc25c 100755 --- a/scripts/ci/publish.sh +++ b/scripts/ci/publish.sh @@ -3,11 +3,11 @@ set -e unset AZURE_CLI_DIAGNOSTICS_TELEMETRY -pip install azure-storage==0.36.0 +pip install azure-storage-blob==1.1.0 wd=`cd $(dirname $0); pwd` -if [ -z $PUBLISH_STORAGE_SAS ] || [ -z $PUBLISH_STORAGE_ACCT ] || [ -z $PUBLISH_CONTAINER ]; then +if [ -z "$PUBLISH_STORAGE_SAS" ] || [ -z "$PUBLISH_STORAGE_ACCT" ] || [ -z "$PUBLISH_CONTAINER" ]; then echo 'Missing publish storage account credential. Skip publishing to store.' exit 0 fi @@ -16,13 +16,13 @@ echo 'Generate artifacts' . $wd/artifacts.sh echo 'Upload artifacts to store' -python $wd/publish.py store -b $share_folder -c $PUBLISH_CONTAINER -a $PUBLISH_STORAGE_ACCT -s $PUBLISH_STORAGE_SAS +python $wd/publish.py store -b $share_folder -c $PUBLISH_CONTAINER -a $PUBLISH_STORAGE_ACCT -s "$PUBLISH_STORAGE_SAS" -if [ -z $EDGE_STORAGE_SAS ] || [ -z $EDGE_STORAGE_ACCT ] || [ -z $EDGE_CONTAINER ]; then +if [ -z "$EDGE_STORAGE_SAS" ] || [ -z "$EDGE_STORAGE_ACCT" ] || [ -z "$EDGE_CONTAINER" ]; then echo 'Missing edge storage account credential. Skip publishing the edge build.' exit 0 fi echo 'Upload artifacts to edge feed' -python $wd/publish.py nightly -b $share_folder -c $EDGE_CONTAINER -a $EDGE_STORAGE_ACCT -s $EDGE_STORAGE_SAS +python $wd/publish.py nightly -b $share_folder -c $EDGE_CONTAINER -a $EDGE_STORAGE_ACCT -s "$EDGE_STORAGE_SAS"