Pass jenkins variables to daisy deploy script 27/39027/1
authorAlex Yang <yangyang1@zte.com.cn>
Thu, 10 Aug 2017 02:43:39 +0000 (10:43 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Thu, 10 Aug 2017 02:43:39 +0000 (10:43 +0800)
JIRA: DAISY-42

Now the daisy deploy script is executed with sudo. In [1], daisy
deploy job needs to check INSTALLER_IP when it generates the
configuration by the POD Descriptor File. So -E option of sudo
is necessary to pass the jenkins variables.

[1] https://gerrit.opnfv.org/gerrit/#/c/38657/

Change-Id: I852c115d1f0623100afef9979619e4770b5bd1d3
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
jjb/daisy4nfv/daisy-deploy.sh

index 785f3a5..0bcac4b 100755 (executable)
@@ -28,7 +28,7 @@ git clone ssh://jenkins-zte@gerrit.opnfv.org:29418/securedlab --quiet \
 # daisy ci/deploy/deploy.sh use $BASE_DIR/labs dir
 cp -r securedlab/labs .
 
-DEPLOY_COMMAND="sudo ./ci/deploy/deploy.sh -b $BASE_DIR \
+DEPLOY_COMMAND="sudo -E ./ci/deploy/deploy.sh -b $BASE_DIR \
                 -l $LAB_NAME -p $POD_NAME -B $BRIDGE -s $DEPLOY_SCENARIO"
 
 # log info to console