Skip to content

Commit

Permalink
Add diagnostics used to take corrective action when releasing buildIn…
Browse files Browse the repository at this point in the history
…foJson (#16404)

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
  • Loading branch information
TravisEz13 and adityapatwardhan committed Nov 8, 2021
1 parent 6d0d34f commit b48614b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ steps:
$stableRelease = $metadata.StableRelease.Latest
$ltsRelease = $metadata.LTSRelease.Latest
$buildInfo = Get-Content $jsonFile | ConvertFrom-Json
Write-Verbose -Verbose "Writing $jsonFile contents:"
$buildInfoJsonContent = Get-Content $jsonFile -Encoding UTF8NoBom -Raw
Write-Verbose -Verbose $buildInfoJsonContent
$buildInfo = $buildInfoJsonContent | ConvertFrom-Json
$buildInfo.ReleaseDate = $dateTime
$targetFile = "$ENV:PIPELINE_WORKSPACE/$fileName"
Expand Down

0 comments on commit b48614b

Please sign in to comment.