Skip to content

Bring over all changes for MSIX packaging template#26932

Merged
jshigetomi merged 1 commit intoPowerShell:release/v7.4from
jshigetomi:fixMSIXPkgTemplate2
Mar 2, 2026
Merged

Bring over all changes for MSIX packaging template#26932
jshigetomi merged 1 commit intoPowerShell:release/v7.4from
jshigetomi:fixMSIXPkgTemplate2

Conversation

@jshigetomi
Copy link
Collaborator

@jshigetomi jshigetomi commented Mar 2, 2026

PR Summary

This pull request enhances the .pipelines/templates/package-create-msix.yml pipeline by introducing explicit handling for LTS, Stable, and Preview build types, allowing for more flexible and targeted package publishing. The main changes involve setting new variables to distinguish between these build types and updating the publishing tasks to use the correct service endpoints based on these variables.

Pipeline variable management and publishing logic:

  • Added steps to set and log new variables (LTS, STABLE, PREVIEW) that indicate the type of build, making it easier to control subsequent publishing tasks.
  • Introduced a debug step to output the values of these variables for troubleshooting and verification purposes.

Store package publishing tasks:

  • Added a new publishing task specifically for Preview builds, which runs only when the PREVIEW variable is true and uses the StoreAppPublish-Preview service endpoint.
  • Updated the existing publishing task to target Stable and LTS builds, using the StoreAppPublish-Stable endpoint and running only when either STABLE or LTS is true.

PR Context

PR fixes msix packaging template for v7.4.14

PR Checklist

@jshigetomi jshigetomi marked this pull request as ready for review March 2, 2026 22:13
@jshigetomi jshigetomi requested a review from a team as a code owner March 2, 2026 22:13
Copilot AI review requested due to automatic review settings March 2, 2026 22:13
@jshigetomi jshigetomi added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Mar 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the MSIX packaging pipeline template to explicitly branch StoreBroker package creation based on the selected channel (LTS/Stable/Preview), enabling the correct Store publishing service connection to be used per channel.

Changes:

  • Sets job-scoped LTS, STABLE, and PREVIEW variables derived from ChannelSelection outputs.
  • Adds a debug step to log the channel variables after configuration updates.
  • Splits StoreBroker package creation into Preview vs Stable/LTS tasks with channel-gated conditions and channel-appropriate service endpoints.

Comment on lines 225 to +240
Write-Host "##vso[task.setvariable variable=ServiceConnection]$($config.ServiceEndpoint)"
Write-Host "##vso[task.setvariable variable=SBConfigPath]$($sbConfigPath)"

# These variables are used in the next tasks to determine which ServiceEndpoint to use
$ltsValue = $IsLTS.ToString().ToLower()
$stableValue = $IsStable.ToString().ToLower()
$previewValue = $IsPreview.ToString().ToLower()

Write-Verbose -Verbose "About to set variables:"
Write-Verbose -Verbose " LTS=$ltsValue"
Write-Verbose -Verbose " STABLE=$stableValue"
Write-Verbose -Verbose " PREVIEW=$previewValue"

Write-Host "##vso[task.setvariable variable=LTS]$ltsValue"
Write-Host "##vso[task.setvariable variable=STABLE]$stableValue"
Write-Host "##vso[task.setvariable variable=PREVIEW]$previewValue"
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new LTS/STABLE/PREVIEW variable plumbing makes the previously-set ServiceConnection value redundant: ServiceConnection is still set from $config.ServiceEndpoint, but it is never referenced anywhere else in this template, and $config.ServiceEndpoint itself is only used for that variable. Consider removing ServiceConnection/ServiceEndpoint from this step (or wiring tasks to use it, if that’s intended) to avoid dead code and configuration drift.

Copilot uses AI. Check for mistakes.
@jshigetomi jshigetomi merged commit feb4ac4 into PowerShell:release/v7.4 Mar 2, 2026
39 of 47 checks passed
jshigetomi added a commit to jshigetomi/PowerShell that referenced this pull request Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants