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 7DAFB18384 for ; Fri, 15 May 2015 18:30:19 +0000 (UTC) Received: (qmail 93861 invoked by uid 500); 15 May 2015 18:30:19 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 93830 invoked by uid 500); 15 May 2015 18:30:19 -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 93821 invoked by uid 99); 15 May 2015 18:30:19 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2015 18:30:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C99A7C137E for ; Fri, 15 May 2015 18:30:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id WwJqau1O6S4Y for ; Fri, 15 May 2015 18:30:10 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id BABA023164 for ; Fri, 15 May 2015 18:30:09 +0000 (UTC) Received: (qmail 93665 invoked by uid 99); 15 May 2015 18:30:08 -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; Fri, 15 May 2015 18:30:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D9B8DE0978; Fri, 15 May 2015 18:30:08 +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 Date: Fri, 15 May 2015 18:30:08 -0000 Message-Id: <8841fff4647e445aa9731d18b4e12df5@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] incubator-ignite git commit: # ignite-456: return to curl Repository: incubator-ignite Updated Branches: refs/heads/ignite-456 07cd5613d -> 97d5c760d # ignite-456: return to curl Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/15887e84 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/15887e84 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/15887e84 Branch: refs/heads/ignite-456 Commit: 15887e84767f546072381322b893e13e843a05d2 Parents: 07cd561 Author: Artem Shutak Authored: Fri May 15 19:11:32 2015 +0300 Committer: Artem Shutak Committed: Fri May 15 19:11:32 2015 +0300 ---------------------------------------------------------------------- dev-tools/src/main/groovy/jiraslurp.groovy | 38 ++++--------------------- 1 file changed, 6 insertions(+), 32 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/15887e84/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 4075739..40f6d47 100644 --- a/dev-tools/src/main/groovy/jiraslurp.groovy +++ b/dev-tools/src/main/groovy/jiraslurp.groovy @@ -140,38 +140,12 @@ def runAllTestBuilds = { jiraNum -> println "Triggering $it build for JIRA_NUM=$jiraNum" def buildCommand = - "" + - "" + - "" + - "" + - "" + - ""; - - - String postData = URLEncoder.encode(buildCommand, "UTF-8"); - - URL url = new URL("http://$user:$pwd@10.30.0.229:80/httpAuth/app/rest/buildQueue"); - HttpURLConnection conn = (HttpURLConnection) url.openConnection(); - conn.setDoOutput(true); - conn.setRequestMethod("POST"); - conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); -// conn.setRequestProperty("Content-Type", "application/xml"); - conn.setRequestProperty("Content-Length", String.valueOf(postData.length())); - - OutputStream os = conn.getOutputStream() - os.write(postData.getBytes()) - os.flush() - os.close() - - // Read response - StringBuilder responseSB = new StringBuilder(); - BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream())); - - String line; - while ( (line = br.readLine()) != null) - responseSB.append(line); - - br.close(); + ""; + + + def runTcBuild = "curl -v http://$user:$pwd@10.30.0.229:80/httpAuth/app/rest/buildQueue -H \"Content-Type: application/xml\" -d \"${buildCommand}\"" + + checkprocess runTcBuild.execute() } }