From commits-return-3998-archive-asf-public=cust-asf.ponee.io@bigtop.apache.org Sun Feb 4 10:06:21 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 8C71F18064A for ; Sun, 4 Feb 2018 10:06:21 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7BCC4160C40; Sun, 4 Feb 2018 09:06:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C1D00160C37 for ; Sun, 4 Feb 2018 10:06:20 +0100 (CET) Received: (qmail 40240 invoked by uid 500); 4 Feb 2018 09:06:19 -0000 Mailing-List: contact commits-help@bigtop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@bigtop.apache.org Delivered-To: mailing list commits@bigtop.apache.org Received: (qmail 40231 invoked by uid 99); 4 Feb 2018 09:06:19 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Feb 2018 09:06:19 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C951BDFE46; Sun, 4 Feb 2018 09:06:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: evansye@apache.org To: commits@bigtop.apache.org Message-Id: <2e6536c1a5874e32bd3ef54944b437b4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: bigtop git commit: BIGTOP-2949. Add gradle task which leverage bigtop-ci/build.sh to build packages Date: Sun, 4 Feb 2018 09:06:19 +0000 (UTC) Repository: bigtop Updated Branches: refs/heads/master 943ea913d -> 44f4293b1 BIGTOP-2949. Add gradle task which leverage bigtop-ci/build.sh to build packages Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/44f4293b Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/44f4293b Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/44f4293b Branch: refs/heads/master Commit: 44f4293b18f8f85c012e8581ca05eaa097b42d7c Parents: 943ea91 Author: Evans Ye Authored: Wed Nov 29 00:22:14 2017 +0800 Committer: Evans Ye Committed: Sun Feb 4 17:05:37 2018 +0800 ---------------------------------------------------------------------- bigtop-ci/build.sh | 2 ++ packages.gradle | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/44f4293b/bigtop-ci/build.sh ---------------------------------------------------------------------- diff --git a/bigtop-ci/build.sh b/bigtop-ci/build.sh index d0a0ff5..9445891 100755 --- a/bigtop-ci/build.sh +++ b/bigtop-ci/build.sh @@ -66,3 +66,5 @@ docker run --name container-$OS-$TARGET-$$ $NEXUS image-$OS $CONFIGURE_NEXUS $TA mkdir -p output docker cp container-$OS-$TARGET-$$:/var/lib/jenkins/bigtop/output . docker rm -v container-$OS-$TARGET-$$ +docker rmi image-$OS +rm -rf Dockerfile http://git-wip-us.apache.org/repos/asf/bigtop/blob/44f4293b/packages.gradle ---------------------------------------------------------------------- diff --git a/packages.gradle b/packages.gradle index 2ca98ec..140a08b 100644 --- a/packages.gradle +++ b/packages.gradle @@ -571,6 +571,27 @@ def genTasks = { target -> group: PACKAGES_GROUP) doLast { } } + task "$target-pkg-ind" ( + description: "Invoking a native binary packaging for $target 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|...] $target-pkg-ind", + group: PACKAGES_GROUP) doLast { + def _prefix = project.hasProperty("prefix") ? prefix : "trunk" + def _OS = project.hasProperty("OS") ? OS : "centos-7" + def _target_pkg = "$target-pkg" + def command = [ + './bigtop-ci/build.sh', + '--os', _prefix + '-' + _OS, + '--target', _target_pkg + ] + + println "Building $_prefix $_target_pkg on $_OS in Docker...\n" + + exec { + workingDir BASE_DIR + commandLine command + } + } task "$target-version" (description: "Show version of $target component", group: PACKAGES_GROUP) doLast { println "Base: ${config.bigtop.components[target].version.base}" }