Skip to content

[release/v7.4.20] Fix OneBranch output variables for early .NET jobs - #27920

Merged
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:release/v7.4.20from
adityapatwardhan:backport/release/v7.4.20/27843-3d8a5af39
Sep 1, 2026
Merged

[release/v7.4.20] Fix OneBranch output variables for early .NET jobs#27920
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:release/v7.4.20from
adityapatwardhan:backport/release/v7.4.20/27843-3d8a5af39

Conversation

@adityapatwardhan

Copy link
Copy Markdown
Member

Backport of #27843 to release/v7.4.20

Triggered by Aditya Patwardhan (@adityapatwardhan) on behalf of Justin Chung (@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)

Fixes OneBranch pipeline expansion for PowerShell 7.4 package and release jobs by defining the required ob_outputDirectory variable for the shared early-access .NET job and the non-early Windows fallback jobs, and by using that output directory as the early-access download destination.

Customer Impact

  • Customer reported
  • Found internally

Regression

REQUIRED: Check exactly one box.

  • Yes
  • No

Regression introduced by PR #27795, which added the affected early-access and fallback Windows jobs without the ob_outputDirectory variable required by the OneBranch Windows job template.

Testing

Verified prerequisite backport PR #27910 is merged at the tip of upstream/release/v7.4.20, then cherry-picked the authoritative #27843 merge commit. Parsed all three changed YAML files successfully with PyYAML, confirmed the changed-file set exactly matches the original PR, ran git diff --check with no whitespace errors, scanned all changed files with no conflict markers found, and confirmed a clean worktree.

Risk

REQUIRED: Check exactly one box.

  • High
  • Medium
  • Low

High risk because the change affects OneBranch build, package, and release pipeline job expansion on the servicing branch. Risk is reduced by the narrow three-file change, direct clean cherry-pick after its prerequisite, exact changed-file validation, successful YAML parsing, and clean whitespace and conflict-marker checks.

Co-authored-by: Justin Chung <chungjustin@microsoft.com>
Copilot-Session: 8784f802-9d66-4692-b64d-c0713fa213cb
Copilot AI lite review requested due to automatic review settings September 1, 2026 01:13
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Sep 1, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Backports the upstream fix to ensure OneBranch Windows job template expansion succeeds for the early-access .NET job path and the non-early-access (fallback) Windows jobs on release/v7.4.20 by defining the required ob_outputDirectory and using it as the early-access download destination.

Changes:

  • Define ob_outputDirectory for the non-early-access Windows “skip” jobs in both release and packages stage templates.
  • Define ob_outputDirectory in downloadDotnetEarlyAccess.yml and use it as destinationPath for early-access downloads.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.pipelines/templates/stages/PowerShell-Release-Stages.yml Adds ob_outputDirectory to the Windows fallback/skip job to prevent OneBranch expansion failures.
.pipelines/templates/stages/PowerShell-Packages-Stages.yml Adds ob_outputDirectory to the Windows fallback/skip job to prevent OneBranch expansion failures.
.pipelines/templates/downloadDotnetEarlyAccess.yml Introduces ob_outputDirectory and routes early-access download destination through it.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) merged commit b159841 into PowerShell:release/v7.4.20 Sep 1, 2026
36 checks passed
@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) deleted the backport/release/v7.4.20/27843-3d8a5af39 branch September 1, 2026 01:27
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.

4 participants