Handle keystore error issue
[scm/meta/abs.git] / build.template
index 3ad0322..dd62134 100644 (file)
@@ -70,7 +70,10 @@ for rs in $rs_list; do
   #if [[ $rs == *"64.core"* ]]; then
   #  echo "SKIP! 64-bit not supported!"; continue;
   #else
-    su - build -c "${ABS_CMD} build -r $rs -w ${BUILD_ROOT}/${PACKAGE} -s ABS -c ${BUILD_MODE} ${PARALLEL_JOBS} --profile-to-search ${PROFILE}"
+
+  su - build -c "${ABS_CMD} build -r $rs -w ${BUILD_ROOT}/${PACKAGE} -s ABS -c ${BUILD_MODE} ${PARALLEL_JOBS} --profile-to-search ${PROFILE}"
+  build_result=$?
+  echo "BUILD RET: ${build_result}"
   #fi
   count=`ls -1 ${TMP_DIR}/*.tpk 2>/dev/null | wc -l`
   if [ $count != 0 ]; then
@@ -80,10 +83,13 @@ for rs in $rs_list; do
   fi
   ret=$?; echo "BUILDING FINISH TIME: `date`"
   if [ $ret != 0 ]; then
-    echo $rs build fail; _clear 8
+    echo $rs build fail; _clear $build_result
   fi
 done
 
+echo "OUTPUT CONTENTS..."
+ls -al ${SHARE_ROOT}
+
 #FIXME: Check 64 bit rootstraps for mobile profile.
 #if [[ $BUILD_TYPE = "SUBMIT" ]] && [[ $PROFILE = "mobile" ]]; then
 #  if [[ $rs_list = *"device64"* ]] && [[ $rs_list = *"emulator64"* ]]; then