Skip to content

Commit 0b50606

Browse files
authored
Ensure that the sbom generation during our analyze doesn't time out (Azure#39476)
* unset PIP_INDEX_URL before 1es publishing our reports artifact
1 parent e03d06f commit 0b50606

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

eng/pipelines/templates/steps/analyze.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,16 @@ steps:
161161

162162
- template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml
163163

164+
# the pip authenticate task sets PIP_INDEX_URL value to the internal feed URL
165+
# we should reset it such that the next task uses public pypi
166+
- pwsh: |
167+
if (Test-Path "~/.pypirc") {
168+
Remove-Item "~/.pypirc"
169+
}
170+
171+
Write-Host "##vso[task.setvariable variable=PIP_INDEX_URL;]"
172+
displayName: Reset PIP INDEX URL
173+
164174
- template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml
165175
parameters:
166176
ArtifactPath: '$(Build.ArtifactStagingDirectory)/reports'

0 commit comments

Comments
 (0)