diff --git a/versioncontrol/git.groovy b/versioncontrol/git.groovy index d24f3ff..719af98 100644 --- a/versioncontrol/git.groovy +++ b/versioncontrol/git.groovy @@ -26,9 +26,12 @@ String getGitInfo(String workingSetRootPath) { } List gettaglist(String workingSetRootPath) { + List taglist = new List() dir(workingSetRootPath) { - return clh.getCommandOutput('git tag --sort=-version:refname') + def tagliststring = clh.getCommandOutput('git tag --sort=-version:refname') + taglist = tagliststring.split() } + return taglist } @NonCPS