5 echo "--------------------------------------------------------"
6 echo "This is $INSTALLER_TYPE deploy job!"
7 echo "--------------------------------------------------------"
9 DEPLOY_SCENARIO=${DEPLOY_SCENARIO:-"os-nosdn-nofeature-noha"}
10 BRIDGE=${BRIDGE:-pxebr}
11 LAB_NAME=${NODE_NAME/-*}
12 POD_NAME=${NODE_NAME/*-}
15 if [[ ! "$NODE_NAME" =~ "-virtual" ]] && [[ ! "$LAB_NAME" =~ (zte) ]]; then
16 echo "Unsupported lab $LAB_NAME for now, Cannot continue!"
20 # clone the securedlab/pharos repo
23 # There are no PDFs in euphrates branch of pharos repo.
24 if [[ "$BRANCH" =~ "euphrates" ]]; then
25 CONFIG_REPO_NAME=securedlab
27 CONFIG_REPO_NAME=pharos
30 if [[ "$BRANCH" =~ "master" ]]; then
36 LABS_DIR=/var/tmp/opnfv-${CONFIG_REPO_NAME}
38 echo "Cloning ${CONFIG_REPO_NAME} repo $BRANCH to $LABS_DIR"
40 git clone ssh://jenkins-zte@gerrit.opnfv.org:29418/${CONFIG_REPO_NAME} \
41 --quiet --branch $BRANCH $LABS_DIR
43 DEPLOY_COMMAND="sudo -E ./ci/deploy/deploy.sh -L $LABS_DIR \
44 -l $LAB_NAME -p $POD_NAME -B $BRIDGE -s $DEPLOY_SCENARIO \
50 --------------------------------------------------------
51 Scenario: $DEPLOY_SCENARIO
56 Starting the deployment using $INSTALLER_TYPE. This could take some time...
57 --------------------------------------------------------
62 # start the deployment
67 echo "Depolyment failed!"
71 echo "--------------------------------------------------------"
72 echo "Deployment done!"