public boolean isDynamicProperty()

in gradle-runner-agent/src/main/java/jetbrains/buildServer/gradle/agent/propertySplit/TeamCityBuildPropertiesGradleSplitter.java [67:106]


  public boolean isDynamicProperty(@NotNull String propertyKey) {
    if (propertyKey.startsWith("dep.")) {
      propertyKey = propertyKey.substring(propertyKey.indexOf('.', 4) + 1);
    }

    if (propertyKey.startsWith("build.")) {
      return true;
    }

    if (propertyKey.startsWith("teamcity.build.id")) {
      return true;
    }

    if (propertyKey.startsWith("teamcity.")) {
      if (propertyKey.startsWith("teamcity.build.")) {
        return false;
      }
      if (propertyKey.startsWith("teamcity.buildConfName")) {
        return false;
      }
      if (propertyKey.startsWith("teamcity.buildType.")) {
        return false;
      }
      if (propertyKey.startsWith("teamcity.configuration.")) {
        return false;
      }
      if (propertyKey.startsWith("teamcity.runner.")) {
        return false;
      }
      if (propertyKey.startsWith("teamcity.projectName")) {
        return false;
      }
      if (propertyKey.startsWith("teamcity.tests.")) {
        return false;
      }
      return true;
    }

    return false;
  }