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 (PowerShell#16404)

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
# Conflicts:
#	tools/releaseBuild/azureDevOps/templates/release-BuildJson.yml
  • Loading branch information
TravisEz13 committed Mar 8, 2022
1 parent 6b8c892 commit b05038e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ steps:
$dateTime = [datetime]::UtcNow
$dateTime = [datetime]::new($dateTime.Ticks - ($dateTime.Ticks % [timespan]::TicksPerSecond), $dateTime.Kind)
$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 b05038e

Please sign in to comment.