in tool/TeamCity.Docker/TeamCityKotlinSettingsGenerator.cs [841:862]
private IEnumerable<string> CreateDockerImageValidationSnapDependencies(string[] dependencyIds) {
if (dependencyIds == null || dependencyIds.Length == 0) {
// dependency IDs must be specified, otherwise the block wouldn't be useful
yield break;
}
yield return "dependencies {";
foreach (string dependantBuildId in dependencyIds)
{
yield return $"\t dependency(AbsoluteId(\"{dependantBuildId}\")) {{";
// -- build problem is reported, but not termeinated, as some of the dependencies might successfully ...
// -- ... create images.
yield return "\t\t snapshot { onDependencyFailure = FailureAction.ADD_PROBLEM }";
// dependency {...}
yield return "\t }";
}
// dependencies {...}
yield return "}";
}