Repository: incubator-ignite Updated Branches: refs/heads/ignite-456 e8aca35b1 -> b58c6f9e1
# ignite-456: add more logging Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/b58c6f9e Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/b58c6f9e Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/b58c6f9e Branch: refs/heads/ignite-456 Commit: b58c6f9e1be1ad3d1c7e0d7364a1086783eb0fb4 Parents: e8aca35 Author: null <null> Authored: Tue May 19 13:06:32 2015 +0300 Committer: null <null> Committed: Tue May 19 13:06:32 2015 +0300 ---------------------------------------------------------------------- dev-tools/src/main/groovy/jiraslurp.groovy | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/b58c6f9e/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 038572e..bd59ad6 100644 --- a/dev-tools/src/main/groovy/jiraslurp.groovy +++ b/dev-tools/src/main/groovy/jiraslurp.groovy @@ -111,6 +111,8 @@ def checkForAttachments = { } def checkprocess = { process -> + println process.text + process.waitFor() if (process.exitValue() != 0) { @@ -133,14 +135,16 @@ def applyPatch = { jira, attachementURL -> patchFile << new URL("$ATTACHMENT_URL/$attachementURL/").text try { + checkprocess "git branch".execute() + checkprocess "git config user.email \"$userEmail\"".execute(null, new File("../")) checkprocess "git config user.name \"$userName\"".execute(null, new File("../")) // Create a new uniqueue branch to applying patch - checkprocess "git checkout -b test-branch-${jira}-${attachementURL}-${System.currentTimeMillis()}". - execute(null, new File("../")) + def newTestBranch = "test-branch-${jira}-${attachementURL}-${System.currentTimeMillis()}" + checkprocess "git checkout -b ${newTestBranch}".execute(null, new File("../")) - println "git branch".execute().text + checkprocess "git branch".execute() checkprocess "git am dev-tools/${patchFile.name}".execute(null, new File("../"))
