Skip to content

Commit b6da584

Browse files
committed
Update pools
1 parent e35b246 commit b6da584

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

eng/pipelines/samples.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ variables:
5050
value: Release
5151
- name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE
5252
value: true
53-
# TODO: Replace with eq(variables['System.TeamProject'], 'public') once a public project is created
54-
# Treat builds from refs/heads/internal/* branches as the mirror builds, i.e., official; and
55-
# treat all other builds as "public".
5653
- name: runAsPublic
57-
value: true # ${{ and(ne(variables['Build.SourceBranch'], 'refs/heads/main'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/internal/'))) }}
54+
value: ${{ eq(variables['System.TeamProject'], 'public') }}
5855
- name: _BuildConfig
5956
value: Release
6057
- name: Build.Arcade.ArtifactsPath
@@ -93,8 +90,8 @@ stages:
9390

9491
pool:
9592
${{ if eq(variables['runAsPublic'], 'true') }}:
96-
name: $(DncEngInternalBuildPool)
97-
demands: ImageOverride -equals windows.vs2022preview.amd64
93+
name: $(DncEngPublicBuildPool)
94+
demands: ImageOverride -equals windows.vs2022preview.amd64.open
9895
# Non-public (i.e., official builds)
9996
${{ else }}:
10097
name: $(DncEngInternalBuildPool)
@@ -122,8 +119,8 @@ stages:
122119

123120
pool:
124121
${{ if eq(variables['runAsPublic'], 'true') }}:
125-
name: $(DncEngInternalBuildPool)
126-
demands: ImageOverride -equals build.ubuntu.2004.amd64
122+
name: $(DncEngPublicBuildPool)
123+
demands: ImageOverride -equals build.ubuntu.2004.amd64.open
127124
# Non-public (i.e., official builds)
128125
${{ else }}:
129126
name: $(DncEngInternalBuildPool)

0 commit comments

Comments
 (0)