Merge "[fuel] Handle CI DEBUG mode"
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 31 Oct 2018 20:42:27 +0000 (20:42 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 31 Oct 2018 20:42:27 +0000 (20:42 +0000)
jjb/fuel/fuel-deploy.sh

index e66dbe1..8bc5fa2 100755 (executable)
@@ -42,6 +42,9 @@ FUEL_LOG_FILENAME="${JOB_NAME}_${BUILD_NUMBER}.log.tar.gz"
 # Limited scope for vPOD verify jobs running on armband-virtual
 [[ ! "${JOB_NAME}" =~ verify-deploy-virtual-arm64 ]] || EXTRA_ARGS='-e'
 
+# turn on DEBUG mode
+[[ ${CI_DEBUG,,} == true ]] && EXTRA_ARGS="-D ${EXTRA_ARGS:-}"
+
 # construct the command
 DEPLOY_COMMAND="${WORKSPACE}/ci/deploy.sh \
     -l ${LAB_NAME} -p ${POD_NAME} -s ${DEPLOY_SCENARIO} \