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-3009. Add gradle repo-ind (#460)
Date Sun, 03 Feb 2019 06:52:48 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 f1e1351  BIGTOP-3009. Add gradle repo-ind (#460)
f1e1351 is described below

commit f1e13518e615b5beb7a33b31fe9924c5b443aad9
Author: Evans Ye <evansye@apache.org>
AuthorDate: Sun Feb 3 14:52:43 2019 +0800

    BIGTOP-3009. Add gradle repo-ind (#460)
---
 packages.gradle | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/packages.gradle b/packages.gradle
index ac2c430..0253f1c 100644
--- a/packages.gradle
+++ b/packages.gradle
@@ -795,3 +795,21 @@ if (nativePackaging) {
       description: "Invoking a native repository target ${nativePackaging.repo}",
       group: PACKAGES_GROUP) doLast { }
 }
+
+task "repo-ind" (
+    description: "Invoking a native repository in Docker. Usage: \$ ./gradlew " +
+            "-POS=[centos-7|fedora-26|debian-9|ubuntu-16.04|opensuse-42.3] " +
+            "-Pprefix=[trunk|1.2.1|1.2.0|1.1.0|...] repo-ind",
+    group: PACKAGES_GROUP) doLast {
+  def _prefix = project.hasProperty("prefix") ? prefix : "trunk"
+  def _OS = project.hasProperty("OS") ? OS : "centos-7"
+  def command = [
+      'docker', 'run', '--rm', '--volume', BASE_DIR + ':/bigtop-home', '--workdir', '/bigtop-home',
+      'bigtop/slaves:' + _prefix + '-' + _OS,
+      './gradlew', 'repo'
+  ]
+  exec {
+    workingDir BASE_DIR
+    commandLine command
+  }
+}


Mime
View raw message