Repository: incubator-ignite Updated Branches: refs/heads/ignite-456 b58c6f9e1 -> a916dac74
# ignite-456: javadoc Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/a916dac7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/a916dac7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/a916dac7 Branch: refs/heads/ignite-456 Commit: a916dac74be025de73e6f0c9fe2b429fbef603c5 Parents: b58c6f9 Author: null <null> Authored: Tue May 19 14:02:26 2015 +0300 Committer: null <null> Committed: Tue May 19 14:02:26 2015 +0300 ---------------------------------------------------------------------- dev-tools/src/main/groovy/jiraslurp.groovy | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a916dac7/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 bd59ad6..34ac79c 100644 --- a/dev-tools/src/main/groovy/jiraslurp.groovy +++ b/dev-tools/src/main/groovy/jiraslurp.groovy @@ -26,6 +26,11 @@ final LAST_SUCCESSFUL_ARTIFACT = "guestAuth/repository/download/Ignite_PatchVali final def JIRA_CMD = System.getProperty('JIRA_COMMAND', 'jira.sh') LinkedHashMap<String, String> jirasAttached = [:] +/** + * Gets jiras for which test tasks were already triggered. + * + * @return List of pairs [jira,attachemntId]. + */ def readHistory = { final int MAX_HISTORY = 5000 @@ -110,6 +115,9 @@ def checkForAttachments = { validated << list.join('\n') } +/** + * Monitors given process and show errors if exist. + */ def checkprocess = { process -> println process.text @@ -123,6 +131,9 @@ def checkprocess = { process -> } } +/** + * Applys patch from jira to given git state. + */ def applyPatch = { jira, attachementURL -> def userEmail = System.getenv("env.GIT_USER_EMAIL"); def userName = System.getenv("env.GIT_USER_NAME"); @@ -167,6 +178,9 @@ def JIRA_xml = { jiranum -> "https://issues.apache.org/jira/si/jira.issueviews:issue-xml/$jiranum/${jiranum}.xml" } +/** + * Runs all given test builds to validate last patch from given jira. + */ def runAllTestBuilds = { builds, jiraNum -> assert jiraNum != 'null', 'Jira number should not be null.' assert jiraNum != null, 'Jira number should not be null.' @@ -226,6 +240,9 @@ def runAllTestBuilds = { builds, jiraNum -> } } +/** + * Main. + */ args.each { println "Arg=$it"
