diff options
author | Dan Radez <dradez@redhat.com> | 2016-08-09 10:51:56 -0400 |
---|---|---|
committer | Dan Radez <dradez@redhat.com> | 2016-08-09 10:52:07 -0400 |
commit | 1d617af8d19f5c2715d21aa6a7ad969ca193ebc1 (patch) | |
tree | e8df9731bbf093dfa314a6cbab44f339ebb98677 | |
parent | 92a920ebd85dc53ba0b4f643db483d53b0c9c8df (diff) |
enabling apex mock-detached deploy state
Change-Id: Ic7b8875aff7588b8e55fe245124461ce9c5f6332
Signed-off-by: Dan Radez <dradez@redhat.com>
-rwxr-xr-x | jjb/apex/apex-deploy.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jjb/apex/apex-deploy.sh b/jjb/apex/apex-deploy.sh index c6cfb26d1..7b012a633 100755 --- a/jjb/apex/apex-deploy.sh +++ b/jjb/apex/apex-deploy.sh @@ -72,6 +72,7 @@ if [[ "$BUILD_DIRECTORY" == *verify* ]]; then DEPLOY_SETTINGS_DIR="${WORKSPACE}/config/deploy" NETWORK_SETTINGS_DIR="${WORKSPACE}/config/network" DEPLOY_CMD="$(pwd)/deploy.sh" + UTIL_CMD="$(pwd)/util.sh" RESOURCES="${WORKSPACE}/build/images/" CONFIG="${WORKSPACE}/build" LIB="${WORKSPACE}/lib" @@ -129,6 +130,7 @@ else DEPLOY_CMD=opnfv-deploy DEPLOY_SETTINGS_DIR="/etc/opnfv-apex/" + UTIL_CMD=opnfv-util NETWORK_SETTINGS_DIR="/etc/opnfv-apex/" RESOURCES="/var/opt/opnfv/images" CONFIG="/var/opt/opnfv" @@ -190,8 +192,12 @@ if ! sudo test -e "$NETWORK_FILE"; then exit 1 fi +# mock detached state for deploy +sudo $UTIL_CMD mock-detached on # start deployment sudo ${DEPLOY_CMD} -d ${DEPLOY_FILE} -n ${NETWORK_FILE} --debug +# turn of mock detached state +sudo $UTIL_CMD mock-detached off echo echo "--------------------------------------------------------" |