Skip to content

Commit 09e622f

Browse files
mszhanyiankitm3k
authored andcommitted
Limit PipAuthenticate in Private Project now (microsoft#22954)
### Description Fixes regression in post merge pipeline caused by microsoft#22612 ### Motivation and Context So far, there isn't the artifactFeeds in Public Project
1 parent 9cfd66d commit 09e622f

File tree

1 file changed

+12
-8
lines changed
  • tools/ci_build/github/azure-pipelines/templates

1 file changed

+12
-8
lines changed

tools/ci_build/github/azure-pipelines/templates/win-ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,12 @@ stages:
130130

131131
- template: telemetry-steps.yml
132132

133-
- task: PipAuthenticate@1
134-
displayName: 'Pip Authenticate'
135-
inputs:
136-
artifactFeeds: 'Lotus'
133+
# The private ADO project
134+
- ${{ if eq(variables['System.CollectionId'], 'bc038106-a83b-4dab-9dd3-5a41bc58f34c') }}:
135+
- task: PipAuthenticate@1
136+
displayName: 'Pip Authenticate'
137+
inputs:
138+
artifactFeeds: 'Lotus'
137139

138140
- ${{ if eq(parameters['buildJava'], 'true') }}:
139141
- task: JavaToolInstaller@0
@@ -395,10 +397,12 @@ stages:
395397
addToPath: true
396398
architecture: ${{ parameters.buildArch }}
397399

398-
- task: PipAuthenticate@1
399-
displayName: 'Pip Authenticate'
400-
inputs:
401-
artifactFeeds: 'Lotus'
400+
# The private ADO project
401+
- ${{ if eq(variables['System.CollectionId'], 'bc038106-a83b-4dab-9dd3-5a41bc58f34c') }}:
402+
- task: PipAuthenticate@1
403+
displayName: 'Pip Authenticate'
404+
inputs:
405+
artifactFeeds: 'Lotus'
402406

403407
- task: NodeTool@0
404408
condition: and(succeeded(), eq('${{ parameters.buildNodejs}}', true))

0 commit comments

Comments
 (0)