Limit PipAuthenticate in Private Project now (#22954)

### Description
Fixes regression in post merge pipeline caused by #22612



### Motivation and Context
So far, there isn't  the artifactFeeds in Public Project
This commit is contained in:
Yi Zhang 2024-11-27 13:32:35 +08:00 committed by GitHub
parent fe749a88a5
commit b930b4ab5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,10 +130,12 @@ stages:
- template: telemetry-steps.yml
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'Lotus'
# The private ADO project
- ${{ if eq(variables['System.CollectionId'], 'bc038106-a83b-4dab-9dd3-5a41bc58f34c') }}:
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'Lotus'
- ${{ if eq(parameters['buildJava'], 'true') }}:
- task: JavaToolInstaller@0
@ -378,10 +380,12 @@ stages:
addToPath: true
architecture: ${{ parameters.buildArch }}
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'Lotus'
# The private ADO project
- ${{ if eq(variables['System.CollectionId'], 'bc038106-a83b-4dab-9dd3-5a41bc58f34c') }}:
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: 'Lotus'
- task: NodeTool@0
condition: and(succeeded(), eq('${{ parameters.buildNodejs}}', true))