Merge "compass: Adjust jjb and scripts"
authorJun Li <matthew.lijun@huawei.com>
Fri, 5 Feb 2016 09:35:16 +0000 (09:35 +0000)
committerGerrit Code Review <gerrit@172.30.200.206>
Fri, 5 Feb 2016 09:35:16 +0000 (09:35 +0000)
jjb/fuel/fuel-download-artifact.sh
jjb/fuel/fuel-upload-artifact.sh

index ceac859..d78ddc5 100755 (executable)
@@ -36,7 +36,7 @@ if [[ ! "$JOB_NAME" =~ (verify|merge) ]]; then
     ISOSTORE="/iso_mount/opnfv_ci/${GIT_BRANCH##*/}"
     if [[ -f "$ISOSTORE/$OPNFV_ARTIFACT" ]]; then
         echo "ISO exists locally. Skipping the download and using the file from ISO store"
-        /bin/cp -f $ISOSTORE/$OPNFV_ARTIFACT $WORKSPACE/opnfv.iso
+        ln -s $ISOSTORE/$OPNFV_ARTIFACT $WORKSPACE/opnfv.iso
         echo "--------------------------------------------------------"
         echo
         ls -al $WORKSPACE/opnfv.iso
index 6dd5f34..47cf898 100755 (executable)
@@ -29,17 +29,17 @@ if [[ ! "$JOB_NAME" =~ (verify|merge) ]]; then
         ls -tp | grep -v '/' | tail -n +6 | xargs -d '\n' /bin/rm -f --
 
         # store ISO
-        echo "Storing $INSTALLER_TYPE artifact on NFS first"
+        echo "Storing $INSTALLER_TYPE artifact on NFS..."
         /bin/cp -f $BUILD_DIRECTORY/opnfv-$OPNFV_ARTIFACT_VERSION.iso \
             $ISOSTORE/opnfv-$OPNFV_ARTIFACT_VERSION.iso
     fi
 fi
 
 # log info to console
-echo
 echo "Uploading $INSTALLER_TYPE artifact. This could take some time..."
 echo
 
+cd $WORKSPACE
 # upload artifact and additional files to google storage
 gsutil cp $BUILD_DIRECTORY/opnfv-$OPNFV_ARTIFACT_VERSION.iso \
     gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso > gsutil.iso.log 2>&1