in tool/TeamCity.Docker/TeamCityKotlinSettingsGenerator.cs [785:808]
private IEnumerable<string> CreateSnapshotDependencies(IEnumerable<string> dependencies, bool? onStaging)
{
yield return "\t dependencies {";
if (onStaging != null)
{
yield return $"\t\t snapshot(AbsoluteId(\"{_options.TeamCityBuildConfigurationId}\"))" + " {\n";
if (onStaging == true)
{
yield return "\t\t\t onDependencyFailure = FailureAction.FAIL_TO_START \n \t\t\t reuseBuilds = ReuseBuilds.ANY \n \t\t\t synchronizeRevisions = false \n \t\t }";
}
else
{
yield return "\t\t\t reuseBuilds = ReuseBuilds.ANY \n \t\t\t onDependencyFailure = FailureAction.IGNORE \n\t }";
}
}
foreach (var buildTypeId in dependencies.OrderBy(i => i))
{
yield return $"\t\t snapshot({NormalizeFileName(buildTypeId)}.{buildTypeId})" + " {\n";
yield return "\t\t\t onDependencyFailure = FailureAction.FAIL_TO_START \n \t\t }";
}
yield return "\t }";
}