Supply release tag processing
This commit is contained in:
parent
89736f09fe
commit
8b361de653
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue