You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/05/18 18:01:49 UTC

incubator-ignite git commit: # ignite-456: fix patch checker id

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-456 77f40a021 -> 933eeeb84


# ignite-456: fix patch checker id


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

Branch: refs/heads/ignite-456
Commit: 933eeeb84f39ed3f86427ac38197ddbcfaa24873
Parents: 77f40a0
Author: Artem Shutak <as...@gridgain.com>
Authored: Mon May 18 19:02:38 2015 +0300
Committer: Artem Shutak <as...@gridgain.com>
Committed: Mon May 18 19:02:38 2015 +0300

----------------------------------------------------------------------
 dev-tools/src/main/groovy/jiraslurp.groovy | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/933eeeb8/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 9ed2b58..0f541c3 100644
--- a/dev-tools/src/main/groovy/jiraslurp.groovy
+++ b/dev-tools/src/main/groovy/jiraslurp.groovy
@@ -21,7 +21,7 @@
 final GIT_REPO = "https://git1-us-west.apache.org/repos/asf/incubator-ignite.git"
 final ATTACHMENT_URL = "https://issues.apache.org/jira/secure/attachment"
 final validated_filename = "validated-jira.txt"
-final LAST_SUCCESSFUL_ARTIFACT = "guestAuth/repository/download/Ignite_PatchValidation_Main/.lastSuccessful/$validated_filename"
+final LAST_SUCCESSFUL_ARTIFACT = "guestAuth/repository/download/Ignite_PatchValidation_PatchChecker/.lastSuccessful/$validated_filename"
 
 final def JIRA_CMD = System.getProperty('JIRA_COMMAND', 'jira.sh')
 LinkedHashMap<String, String> jirasAttached = [:]
@@ -39,7 +39,13 @@ def readHistory = {
     }
     else {
         try {
-            validated_list = new URL("http://204.14.53.152/$LAST_SUCCESSFUL_ARTIFACT").text.split('\n')
+            def historyUrl = "http://${System.getenv('TC_URL')}/$LAST_SUCCESSFUL_ARTIFACT"
+
+            println "Reading history from $historyUrl"
+
+            validated_list = new URL(historyUrl).text.split('\n')
+
+            println "Got validated list=$validated_list"
         }
         catch (Exception e) {
             println e.getMessage()
@@ -47,9 +53,8 @@ def readHistory = {
     }
 
     // Let's make sure the preserved history isn't too long
-    if (validated_list.size > MAX_HISTORY) {
+    if (validated_list.size > MAX_HISTORY)
         validated_list = validated_list[validated_list.size - MAX_HISTORY..validated_list.size - 1]
-    }
 
     validated_list
 }