Supply release tag processing

This commit is contained in:
Dan Hawkins 2022-02-25 00:12:00 +00:00
commit 8b361de653

View file

@ -16,6 +16,7 @@ def startswithspecialprefix(String releasetag) {
def String prefixfound = ''
def String tagwithoutprefix = releasetag
echo "Release tag is: ${releasetag}"
// Two forms of releasetag expected
// <prefix>_<version>_<buildnumber>
// <version>_<buildnumber>
@ -28,6 +29,7 @@ def startswithspecialprefix(String releasetag) {
tagwithoutprefix = releasetag[(firstseperatorindex + 1)..-1]
}
}
echo "Results are: ${hasspecialprefix} ${prefixfound} ${tagwithoutprefix}"
return [ 'hasspecialprefix' : hasspecialprefix,
'prefixfound' : prefixfound,
'tagwithoutprefix' : tagwithoutprefix,