Supply release tag processing
This commit is contained in:
parent
64882035b9
commit
80bc64e32e
1 changed files with 4 additions and 4 deletions
|
|
@ -16,11 +16,11 @@ def LinkedHashMap startswithspecialprefix(String releasetag) {
|
|||
def String prefixfound = ''
|
||||
def String tagwithoutprefix = releasetag
|
||||
|
||||
def rtsplits = releasetag.split(RELEASETAG_PREFIX_SEPERATOR)
|
||||
if (rtsplits.size() > 0)
|
||||
prefixfound = rtsplits[0].toLowerCase()
|
||||
def firstseperatorindex = releasetag.indexOf(RELEASETAG_PREFIX_SEPERATOR)
|
||||
if (firstseperatorindex > 0)
|
||||
prefixfound = releasetag[0..(firstseperatorindex - 1)].toLowerCase()
|
||||
hasspecialprefix = RELEASETAG_PREFIXES.containsKey(prefixfound)
|
||||
tagwithoutprefix = rtsplits[1..].join(RELEASETAG_PREFIX_SEPERATOR)
|
||||
tagwithoutprefix = releasetag[(firstseperatorindex + 1)..-1]
|
||||
}
|
||||
return [ 'hasspecialprefix' : hasspecialprefix,
|
||||
'prefixfound' : prefixfound,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue