@Override
  public String getFullVersion(StackReleaseInfo info) {

    StringBuilder sb = new StringBuilder(info.getVersion());

    if (StringUtils.isNotBlank(info.getBuild())) {
      sb.append('-').append(StringUtils.trim(info.getBuild()));
    }

    return sb.toString();
  }
This is the default implementation if no stack provides an implementation.
Before this mechanism, Ambari assumed the version was in the format X.X.X.X-YYYY
ambari-server/src/main/java/org/apache/ambari/server/state/repository/DefaultStackVersion.java