Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88710179E7 for ; Wed, 20 May 2015 13:38:44 +0000 (UTC) Received: (qmail 90967 invoked by uid 500); 20 May 2015 13:38:44 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 90937 invoked by uid 500); 20 May 2015 13:38:44 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 90927 invoked by uid 99); 20 May 2015 13:38:44 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 May 2015 13:38:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E3B62C6D48 for ; Wed, 20 May 2015 13:38:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.77 X-Spam-Level: * X-Spam-Status: No, score=1.77 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id bvo2dcgomtYV for ; Wed, 20 May 2015 13:38:43 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id F179843CB6 for ; Wed, 20 May 2015 13:38:42 +0000 (UTC) Received: (qmail 90923 invoked by uid 99); 20 May 2015 13:38:42 -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; Wed, 20 May 2015 13:38:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4F172DFAFF; Wed, 20 May 2015 13:38:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Message-Id: <06ef7c0d86df45199b8808b95963d4bc@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-ignite git commit: # ignite-456: runAllBuilds with null JiraNum Date: Wed, 20 May 2015 13:38:42 +0000 (UTC) Repository: incubator-ignite Updated Branches: refs/heads/ignite-456 4f637d0a0 -> 28cfe8089 # ignite-456: runAllBuilds with null JiraNum Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/28cfe808 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/28cfe808 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/28cfe808 Branch: refs/heads/ignite-456 Commit: 28cfe80895260e2708107772290860b79e014966 Parents: 4f637d0 Author: null Authored: Wed May 20 16:39:38 2015 +0300 Committer: null Committed: Wed May 20 16:39:38 2015 +0300 ---------------------------------------------------------------------- dev-tools/src/main/groovy/jiraslurp.groovy | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/28cfe808/dev-tools/src/main/groovy/jiraslurp.groovy ---------------------------------------------------------------------- diff --git a/dev-tools/src/main/groovy/jiraslurp.groovy b/dev-tools/src/main/groovy/jiraslurp.groovy index 655f464..e9f9820 100644 --- a/dev-tools/src/main/groovy/jiraslurp.groovy +++ b/dev-tools/src/main/groovy/jiraslurp.groovy @@ -194,13 +194,21 @@ def runAllTestBuilds = { builds, jiraNum -> try { println "Triggering $it build for $jiraNum jira..." - String postData = - "" + - " " + - " " + - " " + - " " + - ""; + String postData + + if (jiraNum != 'null' || jiraNum != null) { + postData = "" + + " " + + ""; + } + else { + postData = "" + + " " + + " " + + " " + + " " + + ""; + } URL url = new URL("http://$tcURL:80/httpAuth/app/rest/buildQueue"); @@ -285,7 +293,7 @@ args.each { applyPatch(jira, attachementURL) } } - else if (parameters.length >= 2 && parameters[0] == "runAllBuilds" && parameters[1] ==~ /\w+-\d+/) { + else if (parameters.length >= 2 && parameters[0] == "runAllBuilds") { def jiraNum = parameters[1] def attachementURL=null