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 authored Oct 23, 2021
2 parents 3b3db33 + 5265bd9 commit c60a072
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 c60a072

Please sign in to comment.