[release/v7.4] Update metadata.json to update the Latest attribute with a better name (#26872)

Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
This commit is contained in:
Travis Plunk
2026-02-23 13:24:35 -05:00
committed by GitHub
co-authored by Aditya Patwardhan
parent 44f2ffebce
commit bf6bd6c56d
4 changed files with 11 additions and 12 deletions
+4 -4
View File
@@ -2,6 +2,10 @@ steps:
- pwsh: |
# Determine LTS, Preview, or Stable
$metadata = Get-Content "$(Build.SourcesDirectory)/PowerShell/tools/metadata.json" -Raw | ConvertFrom-Json
$LTS = $metadata.LTSRelease.PublishToChannels
$Stable = $metadata.StableRelease.PublishToChannels
$isPreview = '$(OutputReleaseTag.releaseTag)' -match '-'
$releaseTag = '$(OutputReleaseTag.releaseTag)'
# Rebuild branches should be treated as preview builds
@@ -11,10 +15,6 @@ steps:
# If you update this regex, also update it in rebuild-branch-check.yml to keep them in sync.
$isRebuildBranch = '$(Build.SourceBranch)' -match 'refs/heads/rebuild/.*-rebuild\.'
$LTS = $metadata.LTSRelease.Latest
$Stable = $metadata.StableRelease.Latest
$isPreview = $releaseTag -match '-'
# If this is a rebuild branch, force preview mode and ignore LTS metadata
if ($isRebuildBranch) {
$IsLTS = $false
@@ -33,7 +33,7 @@ stages:
- template: release-SetReleaseTagandContainerName.yml
parameters:
restorePhase: true
- pwsh: |
$packageVersion = '$(OutputReleaseTag.ReleaseTag)'.ToLowerInvariant() -replace '^v',''
$vstsCommandString = "vso[task.setvariable variable=packageVersion]$packageVersion"
@@ -42,7 +42,7 @@ stages:
displayName: Set Package version
env:
ob_restore_phase: true
- pwsh: |
$branch = 'mirror-target'
$gitArgs = "clone",
@@ -151,7 +151,7 @@ stages:
$metadataHash = @{}
$skipPublishValue = '${{ parameters.skipPublish }}'
$metadataHash["ReleaseTag"] = '$(OutputReleaseTag.ReleaseTag)'
$metadataHash["LTS"] = $metadata.LTSRelease.Latest
$metadataHash["LTS"] = $metadata.LTSRelease.PublishToChannels
$metadataHash["ForProduction"] = $true
$metadataHash["SkipPublish"] = [System.Convert]::ToBoolean($skipPublishValue)
@@ -222,7 +222,7 @@ stages:
files_to_sign: '*.ps1'
search_root: '$(repoRoot)/.pipelines/EV2Specs/ServiceGroupRoot/Shell/Run'
displayName: Sign Run.ps1
- pwsh: |
# folder to tar must have: Run.ps1, settings.toml, python_dl
$srcPath = Join-Path '$(ev2ServiceGroupRootFolder)' -ChildPath 'Shell'
@@ -57,7 +57,6 @@ jobs:
$metadata = Get-Content -LiteralPath "$toolsDirectory/metadata.json" -ErrorAction Stop | ConvertFrom-Json
$stableReleaseTag = $metadata.StableReleaseTag -Replace 'v',''
$stableRelease = $metadata.StableRelease.PublishToChannels
$ltsRelease = $metadata.LTSRelease.PublishToChannels
@@ -145,4 +144,4 @@ jobs:
Write-Verbose -Verbose "Uploading $jsonFile to $containerName/$prefix/$blobName"
Set-AzStorageBlobContent -File $jsonFile -Container $containerName -Blob "$prefix/$blobName" -Context $storageContext -Force
}
condition: and(succeeded(), or(eq(variables['UploadPreview'], 'YES'), eq(variables['UploadLTS'], 'YES'), eq(variables['UploadStable'], 'YES')))
condition: and(succeeded(), or(eq(variables['UploadPreview'], 'YES'), eq(variables['UploadLTS'], 'YES'), eq(variables['UploadStable'], 'YES')))
+2 -2
View File
@@ -5,6 +5,6 @@
"ReleaseTag": "v7.4.0",
"LTSReleaseTag" : ["v7.2.13"],
"NextReleaseTag": "v7.4.0-preview.5",
"LTSRelease": { "Latest": true, "Package": true },
"StableRelease": { "Latest": false, "Package": true }
"LTSRelease": { "PublishToChannels": true, "Package": true },
"StableRelease": { "PublishToChannels": false, "Package": true }
}