Repository: incubator-ignite Updated Branches: refs/heads/ignite-456 1471f2003 -> 6b01ddcdb
# ignie-456: contributors 2 Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/6b01ddcd Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/6b01ddcd Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/6b01ddcd Branch: refs/heads/ignite-456 Commit: 6b01ddcdb5a179f4f7473cf26217537d3998e9d2 Parents: 1471f20 Author: null <null> Authored: Mon May 25 14:54:18 2015 +0300 Committer: null <null> Committed: Mon May 25 14:54:18 2015 +0300 ---------------------------------------------------------------------- dev-tools/src/main/groovy/jiraslurp.groovy | 32 ++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/6b01ddcd/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 ec30aa8..109dfc0 100644 --- a/dev-tools/src/main/groovy/jiraslurp.groovy +++ b/dev-tools/src/main/groovy/jiraslurp.groovy @@ -129,29 +129,29 @@ final def TC_BUILD_EXCLUDE_LIST = envVariableAsList("BUILD_ID_EXCLUDES", ["Ignit final def JIRA_USER = System.getenv('JIRA_USER') final def JIRA_PWD = System.getenv('JIRA_PWD') -def getContributors = { - def response = sendGetRequest( - "$JIRA_URL/jira/rest/api/2/project/12315922/role/10010" as String, - JIRA_USER, - JIRA_PWD) +final def CONTRIBUTORS = [] - println "Response on contributors request = $response" +def contributors = { + if (!CONTRIBUTORS) { + def response = sendGetRequest( + "$JIRA_URL/jira/rest/api/2/project/12315922/role/10010" as String, + JIRA_USER, + JIRA_PWD) - def json = new groovy.json.JsonSlurper().parseText(response) + println "Response on contributors request = $response" - def contributors = [] + def json = new groovy.json.JsonSlurper().parseText(response) - json.actors.each { - contributors.add(it.name) - } + json.actors.each { + CONTRIBUTORS.add(it.name) + } - println "Contributors list: $contributors" + println "Contributors list: $CONTRIBUTORS" + } - contributors + CONTRIBUTORS } -final def CONTRIBUTORS = getContributors() - /** * Gets jiras for which test tasks were already triggered. * @@ -188,7 +188,7 @@ def getLatestAttachment = { jira -> .find { def fName = [email protected]() - CONTRIBUTORS.contains(it.@author as String) && + contributors().contains(it.@author as String) && (fName.endsWith(".patch") || fName.endsWith(".txt") || fName.endsWith(".diff")) }
