@@ -37,35 +37,11 @@ stages:
37
37
jobs :
38
38
- job : Windows
39
39
pool :
40
- # For public or PR jobs, use the hosted pool. For internal jobs use the internal pool.
41
- # Will eventually change this to two BYOC pools.
42
- ${{ if ne(variables['System.TeamProject'], 'internal') }} :
43
- name : NetCore-Public
44
- demands : ImageOverride -equals windows.vs2022.amd64.open
45
- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
46
- name : NetCore1ESPool-Internal
47
- demands : ImageOverride -equals windows.vs2022.amd64
40
+ name : NetCore-Public
41
+ demands : ImageOverride -equals windows.vs2022.amd64.open
48
42
variables :
49
- # Only enable publishing in official builds.
50
- - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
51
- # Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
52
- - group : DotNet-Symbol-Server-Pats
53
- - group : Publish-Build-Assets
54
- - name : _OfficialBuildArgs
55
- value : /p:DotNetSignType=$(_SignType)
56
- /p:TeamName=$(_TeamName)
57
- /p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
58
- /p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
59
- /p:OfficialBuildId=$(BUILD.BUILDNUMBER)
60
- /p:PublishToSymbolServer=true
61
- /p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
62
- /p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
63
- - name : _PublishUsingPipelines
64
- value : true
65
- # else
66
- - ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }} :
67
- - name : _OfficialBuildArgs
68
- value : ' '
43
+ - name : _OfficialBuildArgs
44
+ value : ' '
69
45
strategy :
70
46
matrix :
71
47
${{ if in(variables['Build.Reason'], 'PullRequest') }} :
@@ -76,12 +52,7 @@ stages:
76
52
77
53
Release :
78
54
_BuildConfig : Release
79
- # PRs or external builds are not signed.
80
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }} :
81
- _SignType : test
82
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
83
- _SignType : real
84
- _BuildArgs : $(_OfficialBuildArgs)
55
+ _SignType : test
85
56
steps :
86
57
- checkout : self
87
58
clean : true
@@ -108,12 +79,8 @@ stages:
108
79
- job : Ubuntu
109
80
displayName : Ubuntu
110
81
pool :
111
- ${{ if eq(variables['System.TeamProject'], 'public') }} :
112
- name : NetCore-Svc-Public
113
- demands : ImageOverride -equals 1es-ubuntu-2004-open
114
- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
115
- name : NetCore1ESPool-Svc-Internal
116
- demands : ImageOverride -equals 1es-ubuntu-2004
82
+ name : NetCore-Svc-Public
83
+ demands : ImageOverride -equals 1es-ubuntu-2004-open
117
84
strategy :
118
85
matrix :
119
86
${{ if in(variables['Build.Reason'], 'PullRequest') }} :
@@ -159,6 +126,3 @@ stages:
159
126
--configuration $(_BuildConfig)
160
127
--prepareMachine
161
128
displayName : Build
162
-
163
- - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
164
- - template : eng\common\templates\post-build\post-build.yml
0 commit comments