[Fuego] [PATCH 1/3] pre_deploy: remove code that refers to the build_failed file

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Thu May 18 04:19:57 UTC 2017


This has been substituted by fuego_test_succesfully_built.

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 2c95a55..8a6194a 100755
--- a/engine/scripts/functions.sh
+++ b/engine/scripts/functions.sh
@@ -263,23 +263,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