diff options
author | vagrant <vagrant@localhost.localdomain> | 2019-01-21 14:18:00 +0000 |
---|---|---|
committer | vagrant <vagrant@localhost.localdomain> | 2019-01-21 14:18:00 +0000 |
commit | 400894771a9ff54c3f88e84ecc79d97a3e08235f (patch) | |
tree | f42448879202c7b41508dddcca3ba8f027c7dd42 | |
parent | 3b309224fc4935a8dc627e8863479b3c29349ce8 (diff) | |
download | regularization-400894771a9ff54c3f88e84ecc79d97a3e08235f.tar.gz regularization-400894771a9ff54c3f88e84ecc79d97a3e08235f.tar.bz2 regularization-400894771a9ff54c3f88e84ecc79d97a3e08235f.tar.xz regularization-400894771a9ff54c3f88e84ecc79d97a3e08235f.zip |
UPDATE: detect git version
-rwxr-xr-x | build/jenkins-build.sh | 7 |
1 files 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 |