[release/v7.6] Fix condition syntax for StoreBroker package tasks in MSIX pipeline #26561
+225
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #26427 to release/v7.6
Triggered by @adityapatwardhan on behalf of @TravisEz13
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
This backports a fix for OneBranch pipeline condition syntax in the MSIX StoreBroker packaging pipeline. The original change ensures conditional expressions follow the correct OneBranch format, though the release branch already uses a more sophisticated dynamic channel selection approach.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
The fix addresses pipeline condition syntax to ensure proper OneBranch compatibility. The cherry-pick was successfully applied with conflict resolution that preserves the release branch's enhanced channel selection logic while incorporating the new instruction documentation.
Risk
REQUIRED: Check exactly one box.
This is a build pipeline infrastructure change that adds documentation and was adapted to work with the existing sophisticated channel selection in the release branch. The changes only affect the MSIX packaging pipeline and preserve all existing functionality.
Merge Conflicts
Resolved conflict in .pipelines/templates/package-create-msix.yml where the main branch had split StoreBroker tasks into separate Preview/Stable tasks, but the release branch uses dynamic channel selection. Kept the release branch's more sophisticated approach while adding the new instruction documentation.