ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: # ignite-456: extract response info
Date Wed, 20 May 2015 14:20:28 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-456 1f22ab13f -> 9ddc38c09


# ignite-456: extract response info


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/9ddc38c0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/9ddc38c0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/9ddc38c0

Branch: refs/heads/ignite-456
Commit: 9ddc38c09e64215c959e42fc4ab9053792bb35f0
Parents: 1f22ab1
Author: null <null>
Authored: Wed May 20 17:21:24 2015 +0300
Committer: null <null>
Committed: Wed May 20 17:21:24 2015 +0300

----------------------------------------------------------------------
 dev-tools/src/main/groovy/jiraslurp.groovy | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/9ddc38c0/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 5089a27..5c783ea 100644
--- a/dev-tools/src/main/groovy/jiraslurp.groovy
+++ b/dev-tools/src/main/groovy/jiraslurp.groovy
@@ -229,15 +229,23 @@ def runAllTestBuilds = { builds, jiraNum ->
             conn.connect();
 
             // Read response.
-            print "Response: "
-
             BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
 
+            String response = "";
             String line;
+  
             while ((line = br.readLine()) != null)
-                println line
+                response += line
 
             br.close();
+
+            println "Response: $response"
+  
+            def build = new XmlSlurper().parseText(response)
+
+            println "Triggered build: ${build.@name}"
+            println "Triggered build url: ${build.@webUrl}"
+            println "Triggered build branch: ${build.@branchName}"
         }
         catch (Exception e) {
             e.printStackTrace()


Mime
View raw message