Fix twine install in Python tool release stage - #16427
Merged
Merged
Conversation
Move PipAuthenticate@1 before the Install Twine step so pip resolves against the internal DevOps feed. Internal builds block pypi.org egress, so 'pip install twine' failed before the feed index URL was configured. Affects apiview-stub-generator, azure-pylint-guidelines-checker, and doc-warden releases. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2154e14c-2587-4881-a641-96a82d95a829
|
Azure Pipelines: 65 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes internal Python tool release failures by ensuring pip install twine runs after the pipeline authenticates to the Azure DevOps Artifacts feed, so pip resolves packages through the internal index (no PyPI egress required).
Changes:
- Move
PipAuthenticate@1to run before the Install Twine step in the internalReleaseToFeedstage. - Keep
TwineAuthenticate@0immediately beforetwine upload, preserving existing upload auth behavior.
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.
Move
PipAuthenticate@1before theInstall Twinestep inarchetype-sdk-tool-python.ymlso pip resolves against the internal DevOps feed.Why
Internal build 6592632 (
tools - apiview-stub-generator) failed at Install Twine:Internal builds block pypi.org egress.
pip install twineran beforePipAuthenticate@1setPIP_INDEX_URL, so pip had no reachable index.Fix
Reorder so
PipAuthenticate@1runs first;TwineAuthenticate@0stays right beforetwine upload.Affects releases for apiview-stub-generator, azure-pylint-guidelines-checker, and doc-warden (all consume this template).