diff --git a/publish/promptingpublish.groovy b/publish/promptingpublish.groovy index deffec8..0ab87af 100644 --- a/publish/promptingpublish.groovy +++ b/publish/promptingpublish.groovy @@ -50,7 +50,7 @@ pipeline { steps { script { gh = load("${autobuilder.commonscripts()}/versioncontrol/git.groovy") - def List releases = gh.gettaglist(SOURCEDIR) + def releases = gh.gettaglist(SOURCEDIR) release = input( message: 'Please select the software version', ok: 'Ok', diff --git a/versioncontrol/git.groovy b/versioncontrol/git.groovy index 719af98..77ca734 100644 --- a/versioncontrol/git.groovy +++ b/versioncontrol/git.groovy @@ -25,8 +25,8 @@ String getGitInfo(String workingSetRootPath) { } } -List gettaglist(String workingSetRootPath) { - List taglist = new List() +ArrayList gettaglist(String workingSetRootPath) { + ArrayList taglist = new ArrayList() dir(workingSetRootPath) { def tagliststring = clh.getCommandOutput('git tag --sort=-version:refname') taglist = tagliststring.split()