This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      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)

      { return null; }

      else

      { return new ListSubversionTagsParameterValue(getName(), getTagsDir(), tags.get(0)); }

      }
      return new ListSubversionTagsParameterValue(getName(), getTagsDir(), this.defaultValue);
      }

            Assignee:
            Unassigned
            Reporter:
            Nico De Groote
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: