-
Improvement
-
Resolution: Unresolved
-
Major
-
None
When having automated builds on the latest svn branches (for a TEST environment - DTAP cycle) with maximum one tag (branch) shown, and no default value given, use the only available tag for builds triggered automatically (not using build with parameters jenkins UI functionality).
Update the getDefaultParameterValue method in the ListSubversionTagsParameterDefinition class.
public ParameterValue getDefaultParameterValue() {
if (StringUtils.isEmpty(this.defaultValue)) {
List<String> tags = getTags();
if (tags.size() != 1)
else
{ return new ListSubversionTagsParameterValue(getName(), getTagsDir(), tags.get(0)); } }
return new ListSubversionTagsParameterValue(getName(), getTagsDir(), this.defaultValue);
}