summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xjjb/apex/apex-deploy.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/jjb/apex/apex-deploy.sh b/jjb/apex/apex-deploy.sh
index c6cfb26d1..0e3985486 100755
--- a/jjb/apex/apex-deploy.sh
+++ b/jjb/apex/apex-deploy.sh
@@ -139,10 +139,15 @@ fi
DEPLOY_CMD="CONFIG=${CONFIG} RESOURCES=${RESOURCES} LIB=${LIB} ${DEPLOY_CMD}"
if [ "$OPNFV_CLEAN" == 'yes' ]; then
+ if [ -f '/root/inventory/pod_settings.yaml' ]; then
+ clean_opts='-f /root/inventory/pod_settings.yaml'
+ else
+ clean_opts=''
+ fi
if [[ "$BUILD_DIRECTORY" == *verify* ]]; then
- sudo CONFIG=${CONFIG} LIB=${LIB} ./clean.sh
+ sudo CONFIG=${CONFIG} LIB=${LIB} ./clean.sh ${clean_opts}
else
- sudo CONFIG=${CONFIG} LIB=${LIB} opnfv-clean
+ sudo CONFIG=${CONFIG} LIB=${LIB} opnfv-clean ${clean_opts}
fi
fi