public String getServerVersion() {
    try {
      return FileUtils
              .readFileToString(new File(getServerVersionFilePath()), Charset.defaultCharset())
              .trim();
    } catch (IOException e) {
      LOG.error("Unable to read server version file", e);
    }
    return null;
  }
Gets ambari server version
@return version String
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java