Supply release tag processing

This commit is contained in:
Dan Hawkins 2022-02-25 00:16:38 +00:00
commit af3c041566

View file

@ -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()