Merged PR 33083: Update path due to pool change

#### AI description  (iteration 1)
#### PR Classification
Code cleanup

#### PR Summary
This pull request updates the path references in the release upload build info script due to a change in the directory structure.
- `.pipelines/templates/release-upload-buildinfo.yml`: Updated path references for importing the `ci.psm1` module and accessing `metadata.json` to reflect the new directory structure.
This commit is contained in:
Patrick Meinecke
2024-10-25 16:33:29 -04:00
committed by Patrick Meinecke
parent 8419685a35
commit 15affc7e14
@@ -49,14 +49,15 @@ jobs:
displayName: Download build info artifact
- pwsh: |
Import-Module '$(Build.SourcesDirectory)/PowerShell/tools/ci.psm1'
$toolsDirectory = '$(Build.SourcesDirectory)/tools'
Import-Module "$toolsDirectory/ci.psm1"
$jsonFile = Get-Item "$ENV:PIPELINE_WORKSPACE/PSPackagesOfficial/BuildInfoJson/*.json"
$fileName = Split-Path $jsonFile -Leaf
$dateTime = [datetime]::UtcNow
$dateTime = [datetime]::new($dateTime.Ticks - ($dateTime.Ticks % [timespan]::TicksPerSecond), $dateTime.Kind)
$metadata = Get-Content -LiteralPath '$(Build.SourcesDirectory)/PowerShell/tools/metadata.json' -ErrorAction Stop | ConvertFrom-Json
$metadata = Get-Content -LiteralPath "$toolsDirectory/metadata.json" -ErrorAction Stop | ConvertFrom-Json
$stableRelease = $metadata.StableRelease.Latest
$ltsRelease = $metadata.LTSRelease.Latest