[Fuego] [PATCH 1/2] pre_deploy: remove all code related to rebuild

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Tue May 16 05:03:10 UTC 2017


If the build doesn't success it will be aborted so we don't need
to check that in the pre_deploy phase.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/scripts/functions.sh | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

diff --git a/engine/scripts/functions.sh b/engine/scripts/functions.sh
index 84fc71f..922396f 100755
--- a/engine/scripts/functions.sh
+++ b/engine/scripts/functions.sh
@@ -225,23 +225,7 @@ function deploy {
 }
 
 function pre_deploy {
-  cd "$WORKSPACE"
-  if [ ! -e "$TRIPLET" ]; then
-    if build; then
-      echo "Test builded(looks like first time)"
-      cd $WORKSPACE/$TRIPLET
-    else
-      echo -e "Error reason: unable to change dir to $TRIPLET"
-    fi
-  elif [ -e "$TRIPLET/build_failed" ]; then
-      echo "Seems the test failed to build last time. Rebuilding"
-
-      if build; then
-          cd $WORKSPACE/$TRIPLET
-      fi
-  else
-    cd  $TRIPLET
-  fi
+    cd "$WORKSPACE/$TRIPLET"
 }
 
 function post_deploy {
-- 
2.7.4




More information about the Fuego mailing list