bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From evan...@apache.org
Subject [bigtop] branch master updated: BIGTOP-3167. Nexus is always enabled for ./gradlew XXX-ind (#469)
Date Tue, 19 Feb 2019 04:47:05 GMT
This is an automated email from the ASF dual-hosted git repository.

evansye pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new ac8e40c  BIGTOP-3167. Nexus is always enabled for ./gradlew XXX-ind (#469)
ac8e40c is described below

commit ac8e40cfdc87881d68a7805fd06972325e761db7
Author: Evans Ye <evansye@apache.org>
AuthorDate: Tue Feb 19 12:47:00 2019 +0800

    BIGTOP-3167. Nexus is always enabled for ./gradlew XXX-ind (#469)
---
 bigtop-ci/build.sh | 2 ++
 packages.gradle    | 6 ++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/bigtop-ci/build.sh b/bigtop-ci/build.sh
index ac5b6bc..db9fb39 100755
--- a/bigtop-ci/build.sh
+++ b/bigtop-ci/build.sh
@@ -53,6 +53,8 @@ esac
 shift
 done
 
+set -e
+
 if [ -z ${PREFIX+x} ]; then
     echo "PREFIX is required";
     UNSATISFIED=true
diff --git a/packages.gradle b/packages.gradle
index 4d08060..25f782d 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -616,15 +616,17 @@ def genTasks = { target ->
           group: PACKAGES_GROUP) doLast {
     def _prefix = project.hasProperty("prefix") ? prefix : "trunk"
     def _OS = project.hasProperty("OS") ? OS : "centos-7"
-    def _nexus = project.hasProperty("nexus") ? nexus : "false"
+    def _nexus = project.hasProperty("nexus") ? nexus : false
     def _target_pkg = "$target-pkg"
     def command = [
             './bigtop-ci/build.sh',
             '--prefix', _prefix,
             '--os', _OS,
             '--target', _target_pkg,
-            _nexus ? '--nexus' : ''
     ]
+    if (_nexus) {
+      command.add('--nexus')
+    }
 
     println "Building $_prefix $_target_pkg on $_OS in Docker...\n"
 


Mime
View raw message