Skip to content

Commit b48614b

Browse files
Add diagnostics used to take corrective action when releasing buildInfoJson (#16404)
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
1 parent 6d0d34f commit b48614b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/releaseBuild/azureDevOps/templates/release-BuildJson.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ steps:
2525
$stableRelease = $metadata.StableRelease.Latest
2626
$ltsRelease = $metadata.LTSRelease.Latest
2727
28-
$buildInfo = Get-Content $jsonFile | ConvertFrom-Json
28+
Write-Verbose -Verbose "Writing $jsonFile contents:"
29+
$buildInfoJsonContent = Get-Content $jsonFile -Encoding UTF8NoBom -Raw
30+
Write-Verbose -Verbose $buildInfoJsonContent
31+
32+
$buildInfo = $buildInfoJsonContent | ConvertFrom-Json
2933
$buildInfo.ReleaseDate = $dateTime
3034
3135
$targetFile = "$ENV:PIPELINE_WORKSPACE/$fileName"

0 commit comments

Comments
 (0)