We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa63844 commit d977a89Copy full SHA for d977a89
.jenkins.groovy
@@ -101,8 +101,10 @@ pipeline {
101
).trim()
102
103
def parts = latestRelease.tokenize('.')
104
- def nextMinor = parts[1].toInteger() + 1
105
- nextVersion = "${parts[0]}.${nextMinor}-SNAPSHOT"
+ def nextPatch = parts[2].toInteger() + 1
+ nextVersion = "${parts[0]}.${parts[1]}.${nextPatch}-SNAPSHOT"
106
+
107
+ echo "Latest release: ${latestRelease}, next SNAPSHOT: ${nextVersion}"
108
}
109
110
sh "./mvnw -B versions:set -DprocessAllModules=true -DgenerateBackupPoms=false \
0 commit comments