This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch dev-1.0.0
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git

commit 26f55dabcd87fff37180cce6ecbdd122f591f90d
Author: dataalive <99398130+dataal...@users.noreply.github.com>
AuthorDate: Mon Mar 7 23:19:19 2022 +0800

    [chore] fix build with parallel parameter only (#8352)
---
 build.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index 2c883c8..bc44fb8 100755
--- a/build.sh
+++ b/build.sh
@@ -121,6 +121,8 @@ BUILD_UI=
 BUILD_SPARK_DPP=
 CLEAN=
 HELP=0
+PARAMETER_COUNT=$#
+PARAMETER_FLAG=0
 if [ $# == 1 ] ; then
     # default
     BUILD_BE=1
@@ -146,11 +148,20 @@ else
             --clean) CLEAN=1 ; shift ;;
             -h) HELP=1; shift ;;
             --help) HELP=1; shift ;;
-            -j) PARALLEL=$2; shift 2 ;;
+            -j) PARALLEL=$2; PARAMETER_FLAG=1; shift 2 ;;
             --) shift ;  break ;;
             *) echo "Internal error" ; exit 1 ;;
         esac
     done
+    #only ./build.sh -j xx then build all 
+    if [[ ${PARAMETER_COUNT} -eq 3 ]] && [[ ${PARAMETER_FLAG} -eq 1 ]];then
+        BUILD_BE=1
+        BUILD_FE=1
+        BUILD_BROKER=1
+        BUILD_UI=1
+        BUILD_SPARK_DPP=1
+        CLEAN=0
+    fi
 fi
 
 if [[ ${HELP} -eq 1 ]]; then

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to