From 400894771a9ff54c3f88e84ecc79d97a3e08235f Mon Sep 17 00:00:00 2001 From: vagrant Date: Mon, 21 Jan 2019 14:18:00 +0000 Subject: UPDATE: detect git version --- build/jenkins-build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/jenkins-build.sh b/build/jenkins-build.sh index afee0c9..d1a3427 100755 --- a/build/jenkins-build.sh +++ b/build/jenkins-build.sh @@ -5,8 +5,11 @@ then echo Using defined version: $CIL_VERSION else # TODO put git tag recognition, or default - export CIL_VERSION=0.10.4 - echo Defining version: $CIL_VERSION + #export CIL_VERSION=0.10.4 + #get tag, remove first char ('v') and leave rest + export CIL_VERSION_RAW=`git describe --tags | tail -c +2` + + echo Defining version from last git tag and commit: $CIL_VERSION fi # Script to builds source code in Jenkins environment # module try-load conda -- cgit v1.2.3