Skip to content

Commit c60a072

Browse files
authored
Merge pull request #675 from luboshl/feature/v3.4/vsts-set-cloud-build-variable-retry
Add retry to SetCloudBuildVariable method in VisualStudioTeamServices
2 parents 3b3db33 + 5265bd9 commit c60a072

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NerdBank.GitVersioning/CloudBuildServices/VisualStudioTeamServices.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public IReadOnlyDictionary<string, string> SetCloudBuildNumber(string buildNumbe
3333

3434
public IReadOnlyDictionary<string, string> SetCloudBuildVariable(string name, string value, TextWriter stdout, TextWriter stderr)
3535
{
36-
(stdout ?? Console.Out).WriteLine($"##vso[task.setvariable variable={name};]{value}");
36+
Utilities.FileOperationWithRetry(() =>
37+
(stdout ?? Console.Out).WriteLine($"##vso[task.setvariable variable={name};]{value}"));
3738
return GetDictionaryFor(name, value);
3839
}
3940

0 commit comments

Comments
 (0)