From 2186b257c74c4c93889ed69e6ff457ca830d3b88 Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Wed, 4 Feb 2015 03:47:20 +0100 Subject: Use git hash instead of svn revision for version --- BKUOnline/pom.xml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'BKUOnline') diff --git a/BKUOnline/pom.xml b/BKUOnline/pom.xml index dacf78ff..d098a26f 100644 --- a/BKUOnline/pom.xml +++ b/BKUOnline/pom.xml @@ -320,8 +320,7 @@ buildnumber-git @@ -349,12 +348,9 @@ shell = "cmd" param = "/c" } - def gitSvnProc = [shell, param, "git svn info | grep Revision:"].execute() + def gitSvnProc = [shell, param, "git rev-parse --short HEAD"].execute() gitSvnProc.waitFor() - def svnref = "unknown" - def out = gitSvnProc.in.text.split(" ") - if (out.size() == 2) - svnref = out[1].trim() + def svnref = gitSvnProc.in.text.trim() project.properties['gitSvnRev'] = svnref -- cgit v1.2.3