Skip to content

Commit c8815db

Browse files
danieljurekCopilot
andauthored
Fix twine install in Python tool release stage (#16427)
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. Copilot-Session: 2154e14c-2587-4881-a641-96a82d95a829 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 810ed2d commit c8815db

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

eng/pipelines/templates/stages/archetype-sdk-tool-python.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ extends:
124124
inputs:
125125
versionSpec: '${{ parameters.PythonVersion}}'
126126

127+
- task: PipAuthenticate@1
128+
displayName: 'Pip Authenticate to feed'
129+
inputs:
130+
artifactFeeds: ${{ parameters.FeedName }}
131+
onlyAddExtraIndex: false
132+
127133
- script: |
128134
set -e
129135
python -m pip install twine
@@ -134,12 +140,6 @@ extends:
134140
inputs:
135141
artifactFeeds: ${{ parameters.FeedName }}
136142

137-
- task: PipAuthenticate@1
138-
displayName: 'Pip Authenticate to feed'
139-
inputs:
140-
artifactFeeds: ${{ parameters.FeedName }}
141-
onlyAddExtraIndex: false
142-
143143
- pwsh: |
144144
twine upload --repository ${{ parameters.FeedName }} --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{ parameters.ArtifactName }}/*.whl
145145
echo "Uploaded whl to devops feed ${{ parameters.FeedName }}"

0 commit comments

Comments
 (0)