Use authenticated package sources in packaging pipelines - #1101
Merged
Conversation
Configure Java and Windows wheel packaging to use authenticated package sources and avoid ad hoc dependency bootstrap downloads. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4d78d7b1-43f9-4fe3-972f-3a70b59db4f6
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Azure Pipelines packaging/build workflows to consistently use authenticated internal package sources (Python/PyPI, NuGet, and Maven) via reusable templates, and to reduce ad hoc bootstrap downloads by seeding tooling into the wheel-build cache.
Changes:
- Introduces reusable templates to authenticate/configure Python+NuGet feeds for Windows wheel builds and Maven feeds (plus Gradle isolation) for Java packaging.
- Wires the new feed-setup templates into both current (
tools/ci_build/...) and legacy (.pipelines/...) pipeline entry points. - Adds a wheel-build cache seeding step (nuget.exe copy + CIBW cache path) to stabilize cibuildwheel behavior.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tools/ci_build/github/azure-pipeline/templates/windows-build-stage.yml | Adds Python/NuGet authenticated feed setup before running pip/cibuildwheel on Windows. |
| tools/ci_build/github/azure-pipeline/java_packaging.yml | Adds Maven feed authentication + Gradle isolation setup to all Java packaging jobs (Win/Linux/macOS). |
| .pipelines/templates/setup-python-feed.yml | New reusable template to authenticate Python and NuGet feeds and configure cibuildwheel isolation/cache. |
| .pipelines/templates/setup-maven-feed.yml | New reusable template to authenticate Maven feeds and enforce Gradle repository isolation using credentials from Maven settings. |
| .pipelines/templates/onebranch-windows-build-stage.yml | Applies the Python/NuGet feed setup to OneBranch Windows wheel builds. |
| .pipelines/java_packaging.yml | Applies the Maven feed setup to the legacy Java packaging pipeline. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Remove the XML declaration so leading whitespace cannot invalidate the generated configuration. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4d78d7b1-43f9-4fe3-972f-3a70b59db4f6
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.
Suppressed comments (1)
.pipelines/templates/setup-maven-feed.yml:27
- This step writes the Gradle init script under
$HOME/.gradle/init.d, which can persist across runs on self-hosted agents and unexpectedly affect unrelated builds (or runs that don’t include this template). Prefer isolating Gradle state by settingGRADLE_USER_HOMEto a job-scoped temp directory and writing the init script under that directory instead.
$gradleInitDir = Join-Path $HOME '.gradle/init.d'
New-Item -ItemType Directory -Force -Path $gradleInitDir | Out-Null
Sayan Shaw (sayanshaw24)
enabled auto-merge (squash)
August 12, 2026 16:03
Sayan Shaw (sayanshaw24)
approved these changes
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Testing
git diff --check