deploy.sh: Silence cleanup output 29/50129/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 5 Jan 2018 03:21:01 +0000 (04:21 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 5 Jan 2018 20:16:17 +0000 (20:16 +0000)
Cleanup sequence might print some warnings/errors that are misleading
for new users, so let's silence them.
While at it, remove unused `cleanup` function stub.

Change-Id: Ic4225f7d4b701cd15d96e1bfc5eecfe2c4291eb6
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 84f131b32ac510097c3aac321fb1ca67bafc8941)

ci/deploy.sh

index 90f789a..09167dc 100755 (executable)
@@ -14,8 +14,7 @@
 #
 do_exit () {
     local RC=$?
-    clean
-    cleanup_mounts
+    cleanup_mounts > /dev/null 2>&1
     if [ ${RC} -eq 0 ]; then
         notify "\n[OK] MCP: Openstack installation finished succesfully!\n\n" 2
     else
@@ -133,16 +132,6 @@ notify() {
 # END of colored notification wrapper
 ##############################################################################
 
-##############################################################################
-# BEGIN of deployment clean-up
-#
-clean() {
-    echo "Cleaning up deploy tmp directories"
-}
-#
-# END of deployment clean-up
-##############################################################################
-
 ##############################################################################
 # BEGIN of variables to customize
 #
@@ -272,8 +261,6 @@ trap do_exit SIGINT SIGTERM EXIT
 # Set no restrictive umask so that Jenkins can remove any residuals
 umask 0000
 
-clean
-
 pushd "${DEPLOY_DIR}" > /dev/null
 # Prepare the deploy config files based on lab/pod information, deployment
 # scenario, etc.