Skip to content

Commit

Permalink
Add retry to SetCloudBuildVariable method in VisualStudioTeamServices.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lubos Hladik committed Oct 20, 2021
1 parent 3b3db33 commit 5265bd9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public IReadOnlyDictionary<string, string> SetCloudBuildNumber(string buildNumbe

public IReadOnlyDictionary<string, string> 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);
}

Expand Down

0 comments on commit 5265bd9

Please sign in to comment.