fix next incr version

This commit is contained in:
Nana Janashia
2020-11-28 15:03:50 +01:00
parent 7e3d309037
commit 0907a4a9f6

2
Jenkinsfile vendored
View File

@@ -11,7 +11,7 @@ pipeline {
script {
echo 'incrementing app version...'
sh 'mvn build-helper:parse-version versions:set \
-DnewVersion=\\\${parsedVersion.majorVersion}.\\\${parsedVersion.minorVersion}.\\\${parsedVersion.nextIncrementalVersion \
-DnewVersion=\\\${parsedVersion.majorVersion}.\\\${parsedVersion.minorVersion}.\\\${parsedVersion.nextIncrementalVersion} \
versions:commit'
def matcher = readFile('pom.xml') =~ '<version>(.+)</version>'
def version = matcher[0][1]