Repository: incubator-ignite Updated Branches: refs/heads/ignite-456 be7f7e63a -> 0be4ff302
# ignite-456: add user git email and name Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/0be4ff30 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/0be4ff30 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/0be4ff30 Branch: refs/heads/ignite-456 Commit: 0be4ff3028e4b5009b4fa939705bb4aafe0b43a0 Parents: be7f7e6 Author: Artem Shutak <ashu...@gridgain.com> Authored: Mon May 18 20:51:06 2015 +0300 Committer: Artem Shutak <ashu...@gridgain.com> Committed: Mon May 18 20:51:06 2015 +0300 ---------------------------------------------------------------------- dev-tools/src/main/groovy/jiraslurp.groovy | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0be4ff30/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 69dc9f6..544bdb0 100644 --- a/dev-tools/src/main/groovy/jiraslurp.groovy +++ b/dev-tools/src/main/groovy/jiraslurp.groovy @@ -122,6 +122,9 @@ def checkprocess = { process -> } def applyPatch = { jira, attachementURL -> + def userEmail = System.getenv("env.GIT_USER_EMAIL"); + def userName = System.getenv("env.GIT_USER_NAME"); + println "Patch apllying with jira='$jira' and attachment='$ATTACHMENT_URL/$attachementURL/'." def patchFile = new File("${jira}-${attachementURL}.patch") @@ -130,6 +133,9 @@ def applyPatch = { jira, attachementURL -> patchFile << new URL("$ATTACHMENT_URL/$attachementURL/").text try { + checkprocess "git config --global user.email \"$userEmail\"".execute(null, new File("../"))git + checkprocess "git config --global user.name \"$userName\"".execute(null, new File("../"))git + // Create a new uniqueue branch to applying patch checkprocess "git checkout -b test-branch-${jira}-${attachementURL}-${System.currentTimeMillis()}". execute(null, new File("../"))git