Skip to content

Commit

Permalink
Merge pull request #675 from luboshl/feature/v3.4/vsts-set-cloud-buil…
Browse files Browse the repository at this point in the history
…d-variable-retry

Add retry to SetCloudBuildVariable method in VisualStudioTeamServices
  • Loading branch information
AArnott committed Oct 23, 2021
2 parents 3b3db33 + 5265bd9 commit c60a072
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -33,7 +33,8 @@ internal class VisualStudioTeamServices : ICloudBuild

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 c60a072

Please sign in to comment.