diff --git a/src/NerdBank.GitVersioning/CloudBuildServices/VisualStudioTeamServices.cs b/src/NerdBank.GitVersioning/CloudBuildServices/VisualStudioTeamServices.cs index 0b3da5f2..fcaf7f1d 100644 --- a/src/NerdBank.GitVersioning/CloudBuildServices/VisualStudioTeamServices.cs +++ b/src/NerdBank.GitVersioning/CloudBuildServices/VisualStudioTeamServices.cs @@ -33,7 +33,8 @@ public IReadOnlyDictionary SetCloudBuildNumber(string buildNumbe public IReadOnlyDictionary SetCloudBuildVariable(string name, string value, TextWriter stdout, TextWriter stderr) { - (stdout ?? Console.Out).WriteLine($"##vso[task.setvariable variable={name};]{value}"); + Utilities.FileOperationWithRetry(() => + (stdout ?? Console.Out).WriteLine($"##vso[task.setvariable variable={name};]{value}")); return GetDictionaryFor(name, value); }