ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [2/2] incubator-ignite git commit: # ignite-456: test builds paramether
Date Mon, 18 May 2015 15:38:30 GMT
# ignite-456: test builds paramether


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

Branch: refs/heads/ignite-456
Commit: 77f40a021ac5a0c3fcfc98376903dcf0be65d075
Parents: 3dc01b5
Author: Artem Shutak <ashutak@gridgain.com>
Authored: Mon May 18 18:37:19 2015 +0300
Committer: Artem Shutak <ashutak@gridgain.com>
Committed: Mon May 18 18:37:19 2015 +0300

----------------------------------------------------------------------
 dev-tools/build.gradle                     |  2 +-
 dev-tools/src/main/groovy/jiraslurp.groovy | 15 ++++++++-------
 2 files changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/77f40a02/dev-tools/build.gradle
----------------------------------------------------------------------
diff --git a/dev-tools/build.gradle b/dev-tools/build.gradle
index 0fb0801..164a775 100644
--- a/dev-tools/build.gradle
+++ b/dev-tools/build.gradle
@@ -36,7 +36,7 @@ task help {
 }
 
 task slurp(dependsOn: 'classes', type: JavaExec) {
-    args(project.buildDir, 'slurp')
+    args(project.buildDir, "slurp,${System.getenv('TEST_BUILDS')}")
     main = 'jiraslurp'
     classpath = sourceSets.main.runtimeClasspath
 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/77f40a02/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 7ebe764..9ed2b58 100644
--- a/dev-tools/src/main/groovy/jiraslurp.groovy
+++ b/dev-tools/src/main/groovy/jiraslurp.groovy
@@ -143,7 +143,7 @@ def JIRA_xml = { jiranum ->
     "https://issues.apache.org/jira/si/jira.issueviews:issue-xml/$jiranum/${jiranum}.xml"
 }
 
-def runAllTestBuilds = { jiraNum ->
+def runAllTestBuilds = { builds, jiraNum ->
     assert jiraNum != 'null', 'Jira number should not be null.'
     assert jiraNum != null, 'Jira number should not be null.'
 
@@ -152,8 +152,7 @@ def runAllTestBuilds = { jiraNum ->
         def user = System.getenv('TASK_RUNNER_USER')
         def pwd = System.getenv('TASK_RUNNER_PWD')
 
-        ["Ignite_IgniteBasic",
-         "Ignite_IgniteDataGrid"].each {
+        builds.each {
             try {
                 println "Triggering $it build for $jiraNum jira..."
 
@@ -204,14 +203,16 @@ def runAllTestBuilds = { jiraNum ->
 }
 
 args.each {
-    println it
+    println "Arg=$it"
 
     def parameters = it.split(",")
 
     println parameters
 
-    if (parameters[0] == 'slurp') {
-        println "Running in 'slurp' mode."
+    if (parameters.length == 2 && parameters[0] == "slurp" && parameters[1]
!= 'null') {
+        def builds = parameters[1].split(' ');
+
+        println "Running in 'slurp' mode. Test builds=${builds}"
 
         checkForAttachments()
 
@@ -220,7 +221,7 @@ args.each {
             //  Trailing slash is important for download; only need to pass JIRA number
             println "Triggering the test builds for: $k = $ATTACHMENT_URL/$v/"
 
-            runAllTestBuilds k
+            runAllTestBuilds(builds,k)
         }
     }
     else if (parameters.length == 2 && parameters[0] == "patchApply" && parameters[1]
==~ /\w+-\d+/) {


Mime
View raw message