fix the judgement condition 51/35851/1
authorwutianwei <wutianwei1@huawei.com>
Wed, 7 Jun 2017 03:38:17 +0000 (11:38 +0800)
committerwutianwei <wutianwei1@huawei.com>
Wed, 7 Jun 2017 03:38:17 +0000 (11:38 +0800)
when in danube branch the $BRANCH is stable/danube
so we need fix the judgement condition

Change-Id: If3a0a40b60098cbd0baf2e64fad8763fae128cb1
Signed-off-by: wutianwei <wutianwei1@huawei.com>
jjb/compass4nfv/compass-build.sh
jjb/compass4nfv/compass-deploy.sh
jjb/compass4nfv/compass-download-artifact.sh
jjb/compass4nfv/compass-upload-artifact.sh

index ea98c05..673a9f1 100644 (file)
@@ -25,7 +25,7 @@ fi
 
 cd $WORKSPACE/
 
-if [[ "$BRANCH" == 'danube' ]]; then
+if [[ "$BRANCH" == 'stable/danube' ]]; then
     ./build.sh  --iso-dir $BUILD_DIRECTORY/ --iso-name compass.iso -c $CACHE_DIRECTORY
     OPNFV_ARTIFACT_SHA512SUM=$(sha512sum $BUILD_DIRECTORY/compass.iso | cut -d' ' -f1)
     OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso
index 111ac66..2668ccd 100644 (file)
@@ -23,7 +23,7 @@ fi
 echo 1 > /proc/sys/vm/drop_caches
 
 export CONFDIR=$WORKSPACE/deploy/conf
-if [[ "$BRANCH" = 'danube' ]]; then
+if [[ "$BRANCH" = 'stable/danube' ]]; then
     export ISO_URL=file://$BUILD_DIRECTORY/compass.iso
 else
     export ISO_URL=file://$BUILD_DIRECTORY/compass.tar.gz
index c09a70c..f891564 100644 (file)
@@ -18,7 +18,7 @@ curl -s -o $BUILD_DIRECTORY/latest.properties http://$GS_URL/latest.properties
 # source the file so we get OPNFV vars
 source $BUILD_DIRECTORY/latest.properties
 
-if [[ "$BRANCH" == 'danube' ]]; then
+if [[ "$BRANCH" == 'stable/danube' ]]; then
     # download the file
     curl -s -o $BUILD_DIRECTORY/compass.iso http://$OPNFV_ARTIFACT_URL > gsutil.iso.log 2>&1
     # list the file
index c6e179d..87a9334 100644 (file)
@@ -7,7 +7,7 @@ echo "Uploading the $INSTALLER_TYPE artifact. This could take some time..."
 echo "--------------------------------------------------------"
 echo
 
-if [[ "$BRANCH" == 'danube' ]]; then
+if [[ "$BRANCH" == 'stable/danube' ]]; then
     FILETYPE='iso'
 else
     FILETYPE='tar.gz'