[release/v7.5] Hardcode Official templates#26968
Conversation
There was a problem hiding this comment.
Pull request overview
Backport to release/v7.5 that removes the OfficialBuild queue-time parameter and hardcodes all “Official” pipelines to use the official OneBranch governed templates, aligning these pipelines with 1ES Drift Management policy.
Changes:
- Removed
OfficialBuildparameter usage and hardcoded pipeline names toprod.true. - Replaced conditional template selection (
templateFile) with direct references to official OneBranch templates. - Hardcoded official-only values (e.g.,
releaseEnvironment: 'Production',ps_official_build: true) where previously conditional.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| - group: mscodehub-feed-read-general | ||
| - group: mscodehub-feed-read-akv | ||
| - name: ENABLE_MSBUILD_BINLOGS | ||
| - name: ENABLE_MSBUILD_BINLOGS |
There was a problem hiding this comment.
The variables list defines ENABLE_MSBUILD_BINLOGS twice, and the first entry has no value. This is likely invalid YAML for pipeline variables (or sets an empty value) and can break evaluation of parameters.ENABLE_MSBUILD_BINLOGS. Remove the stray/duplicate entry and keep a single ENABLE_MSBUILD_BINLOGS variable with the intended value mapping.
e0b6127
into
PowerShell:release/v7.5

Backport of #26928 to release/v7.5
Triggered by @adityapatwardhan 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
Removes OfficialBuild parameter from pipeline YAML files and hardcodes official OneBranch templates to comply with 1ES Drift Management policy.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Build pipeline YAML changes only — verified by pipeline execution. No functional code changes.
Risk
REQUIRED: Check exactly one box.
Removes conditional OfficialBuild parameter logic and hardcodes official templates. This aligns with 1ES Drift Management policy compliance. Same change was already successfully backported to release/v7.4.
Merge Conflicts
Conflict in .pipelines/PowerShell-Coordinated_Packages-Official.yml: The release/v7.5 branch had a templateFile variable (referencing OfficialBuild) where master had CodeQL variables. Resolved by removing the templateFile variable (the intent of the PR) without adding the CodeQL variables (which were pre-existing context on master, not part of this PR's changes).