From b930b4ab5bfd86eef3009ddfa52229e4b86c5e16 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Wed, 27 Nov 2024 13:32:35 +0800 Subject: [PATCH] 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 --- .../azure-pipelines/templates/win-ci.yml | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/templates/win-ci.yml b/tools/ci_build/github/azure-pipelines/templates/win-ci.yml index cc46e0c92c..e046997b4f 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-ci.yml @@ -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))