Handle long version number strings eg. in sha codes
This commit is contained in:
parent
c98990423a
commit
e75eb96a20
1 changed files with 3 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ def getVersionPrefix(String sourcebranch, boolean droptrailingdot = false) {
|
|||
def integerstrings = sourcebranch.findAll(/\d+/)
|
||||
def integers = []
|
||||
for (integerstring in integerstrings) {
|
||||
if (integerstring.length() > 6) {
|
||||
integerstring = integerstring.substring(0, 5)
|
||||
}
|
||||
int integer = integerstring.toInteger()
|
||||
integer = integer % (maxversionnumber() + 1)
|
||||
integers.add(integer)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue