Move securedlab clone outside of daisy WORKSPACE 49/42149/3
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Thu, 14 Sep 2017 16:17:19 +0000 (09:17 -0700)
committerZhijiang Hu <hu.zhijiang@zte.com.cn>
Wed, 27 Sep 2017 09:37:49 +0000 (05:37 -0400)
Change-Id: Ic3bac4876160aaefb77707c22f6d34a9b8b1068c
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/daisy4nfv/daisy-deploy.sh

index 0bcac4b..803ff5b 100755 (executable)
@@ -19,16 +19,14 @@ fi
 
 # clone the securedlab repo
 cd $WORKSPACE
-BASE_DIR=$(cd ./;pwd)
+SECURELAB_DIR=/var/tmp/opnfv-securedlab
 
-echo "Cloning securedlab repo $BRANCH"
+echo "Cloning securedlab repo $BRANCH to $SECURELAB_DIR"
+rm -rf $SECURELAB_DIR
 git clone ssh://jenkins-zte@gerrit.opnfv.org:29418/securedlab --quiet \
-    --branch $BRANCH
+    --branch $BRANCH $SECURELAB_DIR
 
-# daisy ci/deploy/deploy.sh use $BASE_DIR/labs dir
-cp -r securedlab/labs .
-
-DEPLOY_COMMAND="sudo -E ./ci/deploy/deploy.sh -b $BASE_DIR \
+DEPLOY_COMMAND="sudo -E ./ci/deploy/deploy.sh -L $SECURELAB_DIR \
                 -l $LAB_NAME -p $POD_NAME -B $BRIDGE -s $DEPLOY_SCENARIO"
 
 # log info to console
@@ -39,7 +37,6 @@ Scenario: $DEPLOY_SCENARIO
 LAB: $LAB_NAME
 POD: $POD_NAME
 BRIDGE: $BRIDGE
-BASE_DIR: $BASE_DIR
 
 Starting the deployment using $INSTALLER_TYPE. This could take some time...
 --------------------------------------------------------