[release/v7.6] Fix buildinfo.json uploading for preview, LTS, and stable releases by daxian-dbw · Pull Request #26715 · PowerShell/PowerShell
Backport of #25571 to release/v7.6
Triggered by @daxian-dbw on behalf of @jshigetomi
Original CL Label: CL-BuildPackaging
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
- Required tooling change
- Optional tooling change (include reasoning)
This fix is required for the release pipeline to correctly upload buildinfo.json files for preview, LTS, and stable releases. It improves the logic for determining which JSON files should be uploaded based on release type and semantic version comparison.
Customer Impact
- Customer reported
- Found internally
Regression
REQUIRED: Check exactly one box.
- Yes
- No
This is not a regression.
Testing
Verified that buildinfo.json is correctly uploaded for preview, LTS, and stable releases. The changes refactor variable names for clarity and improve semantic version handling to ensure JSON files are only uploaded when appropriate.
Risk
REQUIRED: Check exactly one box.
- High
- Medium
- Low
This is a refinement of release pipeline logic with improved variable naming and conditional checks. The changes are isolated to the build info upload template and do not affect runtime PowerShell functionality.