private static FileSystemPath TryGetSystemPropertiesFilePath()

in Platform/Tools/PowerShell/JetCmdlet/Infra/TeamCity/TeamCityProperties.cs [93:103]


    private static FileSystemPath TryGetSystemPropertiesFilePath()
    {
      FileSystemPath path = FileSystemPath.TryParse(Environment.GetEnvironmentVariable("TEAMCITY_BUILD_PROPERTIES_FILE"));
      if(path.IsEmpty)
        return FileSystemPath.Empty;

      // Switch to an XML representation of the properties file
      path = new FileSystemPath(path.FullPath + ".xml");

      return path.ExistsFile ? path : FileSystemPath.Empty;
    }