Skip to content

Commit d977a89

Browse files
committed
wip
1 parent fa63844 commit d977a89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.jenkins.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ pipeline {
101101
).trim()
102102

103103
def parts = latestRelease.tokenize('.')
104-
def nextMinor = parts[1].toInteger() + 1
105-
nextVersion = "${parts[0]}.${nextMinor}-SNAPSHOT"
104+
def nextPatch = parts[2].toInteger() + 1
105+
nextVersion = "${parts[0]}.${parts[1]}.${nextPatch}-SNAPSHOT"
106+
107+
echo "Latest release: ${latestRelease}, next SNAPSHOT: ${nextVersion}"
106108
}
107109

108110
sh "./mvnw -B versions:set -DprocessAllModules=true -DgenerateBackupPoms=false \

0 commit comments

Comments
 (0)