Repository: incubator-ignite Updated Branches: refs/heads/ignite-456 319a16ce3 -> 3070fc028
# ignite-456: workaround for validation Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/3070fc02 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/3070fc02 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/3070fc02 Branch: refs/heads/ignite-456 Commit: 3070fc028aa31ffaa1c0c4b8a8d9e090adc5c399 Parents: 319a16c Author: Artem Shutak <ashu...@gridgain.com> Authored: Mon May 18 19:54:58 2015 +0300 Committer: Artem Shutak <ashu...@gridgain.com> Committed: Mon May 18 19:54:58 2015 +0300 ---------------------------------------------------------------------- dev-tools/src/main/groovy/jiraslurp.groovy | 33 ++++++++++++++----------- 1 file changed, 18 insertions(+), 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/3070fc02/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 e16d3cd..cc95282 100644 --- a/dev-tools/src/main/groovy/jiraslurp.groovy +++ b/dev-tools/src/main/groovy/jiraslurp.groovy @@ -31,27 +31,30 @@ def readHistory = { List validated_list = [] - def validated = new File(validated_filename) + // TODO do not use folder. + def validated = new File(System.getProperty("user.home") + File.separator + validated_filename) if (validated.exists()) { + // TODO use commented way. validated_list = validated.text.split('\n') + validated.delete() } - else { - try { - 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() - - } - } + // TODO use it way. +// try { +// 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() +// +// } // Let's make sure the preserved history isn't too long if (validated_list.size > MAX_HISTORY)