Ensures that there are no quotes passed from Jenkins

This commit is contained in:
Marcin Grzejszczak
2018-06-28 18:04:42 +02:00
parent 1cdf6ff996
commit ccc881f764

View File

@@ -130,6 +130,10 @@ public class SpringReleaser {
options.startFrom = "";
enforceFullRelease(options);
} else if (!options.taskNames.isEmpty()) {
options.taskNames = new ArrayList<>(options.taskNames)
.stream()
.map(this::removeQuotingChars)
.collect(Collectors.toList());
filteredProjects = filteredProjects.stream()
.filter(project -> options.taskNames.contains(project))
.collect(Collectors.toList());