Supply release tag processing
This commit is contained in:
parent
8b361de653
commit
af3c041566
1 changed files with 2 additions and 0 deletions
|
|
@ -21,7 +21,9 @@ def startswithspecialprefix(String releasetag) {
|
|||
// <prefix>_<version>_<buildnumber>
|
||||
// <version>_<buildnumber>
|
||||
def int separatorcount = releasetag.split(RELEASETAG_PREFIX_SEPERATOR).size() - 1
|
||||
echo "separatorcount is: ${separatorcount}"
|
||||
def firstseperatorindex = releasetag.indexOf(RELEASETAG_PREFIX_SEPERATOR)
|
||||
echo "firstseperatorindex is: ${firstseperatorindex}"
|
||||
if (separatorcount >= 2) {
|
||||
if (firstseperatorindex > 0) {
|
||||
prefixfound = releasetag[0..(firstseperatorindex - 1)].toLowerCase()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue