Skip to content

Commit 38139ed

Browse files
committed
Merge remote-tracking branch 'origin/v3.4'
2 parents 3e849bb + c60a072 commit 38139ed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/NerdBank.GitVersioning/CloudBuildServices/VisualStudioTeamServices.cs

Lines changed: 2 additions & 1 deletion
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

src/NerdBank.GitVersioning/VersionOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,7 @@ public bool? SetVersionVariables
934934
/// <summary>
935935
/// Gets or sets options around how and whether to set the build number preset by the cloud build with one enriched with version information.
936936
/// </summary>
937+
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
937938
public CloudBuildNumberOptions? BuildNumber
938939
{
939940
get => this.buildNumber;

0 commit comments

Comments
 (0)