From 04092d328b4d58fa9326573b11ca10f2f493eb6c Mon Sep 17 00:00:00 2001 From: Steve Suh Date: Tue, 1 Feb 2022 13:10:15 -0800 Subject: [PATCH] Migrate to 1ES hosted pools (#1020) --- azure-pipelines-e2e-tests-template.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/azure-pipelines-e2e-tests-template.yml b/azure-pipelines-e2e-tests-template.yml index bfd691691..36dcd7d16 100644 --- a/azure-pipelines-e2e-tests-template.yml +++ b/azure-pipelines-e2e-tests-template.yml @@ -22,8 +22,12 @@ stages: pool: Hosted VS2017 ${{ else }}: pool: - name: NetCore1ESPool-Public - demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open + ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}: + name: NetCore1ESPool-Public + demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open + ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: + name: NetCore1ESPool-Internal + demands: ImageOverride -equals Build.Ubuntu.1804.Amd64 steps: - task: PowerShell@2