@@ -29,14 +29,6 @@ variables:
29
29
value : false
30
30
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
31
31
- group : Templating-SDLValidation-Params
32
- - ${{ if ne(variables['System.TeamProject'], 'public') }} :
33
- # Variable replaced by enable-internal-runtimes.yml
34
- - name : _InternalRuntimeDownloadArgs
35
- value : /p:DotNetRuntimeSourceFeed=https://dotnetbuilds.blob.core.windows.net/internal
36
- /p:DotNetRuntimeSourceFeedKey=$(dotnetbuilds-internal-container-read-token-base64)
37
- - ${{ if eq(variables['System.TeamProject'], 'public') }} :
38
- - name : _InternalRuntimeDownloadArgs
39
- value : ' '
40
32
- template : /eng/common/templates-official/variables/pool-providers.yml
41
33
42
34
resources :
@@ -106,7 +98,7 @@ extends:
106
98
- _SignType : test
107
99
- ${{ if notin(variables['Build.Reason'], 'PullRequest') }} :
108
100
- _SignType : real
109
- - _InternalBuildArgs : ' '
101
+ - _InternalBuildArgs : ' '
110
102
# Only enable publishing in non-public, non PR scenarios.
111
103
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
112
104
# DotNet-Symbol-Server-Pats provides: microsoft-symbol-server-pat, symweb-symbol-server-pat
@@ -119,16 +111,12 @@ extends:
119
111
- checkout : self
120
112
clean : true
121
113
122
- - template : /eng/common/templates-official/steps/enable-internal-runtimes.yml
123
- - template : /eng/common/templates-official/steps/enable-internal-sources.yml
124
-
125
114
# Use utility script to run script command dependent on agent OS.
126
115
- script : eng/common/cibuild.cmd
127
116
-configuration $(_BuildConfig)
128
117
-prepareMachine
129
118
-integrationTest
130
119
$(_InternalBuildArgs)
131
- $(_InternalRuntimeDownloadArgs)
132
120
displayName : Windows Build / Publish
133
121
134
122
- ${{ if in(variables['Build.Reason'], 'PullRequest') }} :
@@ -141,18 +129,13 @@ extends:
141
129
- _BuildConfig : ${{ config.buildConfig }}
142
130
- _SignType : none
143
131
steps :
144
-
145
- - template : /eng/common/templates-official/steps/enable-internal-runtimes.yml
146
- - template : /eng/common/templates-official/steps/enable-internal-sources.yml
147
-
148
132
- script : eng/common/cibuild.sh
149
133
--configuration $(_BuildConfig)
150
134
--prepareMachine
151
135
--integrationTest
152
- $(_InternalRuntimeDownloadArgs)
153
136
name : Build
154
137
displayName : Build
155
-
138
+
156
139
- ${{ if in(variables['Build.Reason'], 'PullRequest') }} :
157
140
- ${{ each config in parameters.buildConfigurations }} :
158
141
- job : Linux_${{ config.buildConfig }}
@@ -170,19 +153,14 @@ extends:
170
153
- _BuildConfig : ${{ config.buildConfig }}
171
154
- _SignType : none
172
155
steps :
173
-
174
- - template : /eng/common/templates-official/steps/enable-internal-runtimes.yml
175
- - template : /eng/common/templates-official/steps/enable-internal-sources.yml
176
-
177
156
- script : eng/common/cibuild.sh
178
157
--configuration $(_BuildConfig)
179
158
--prepareMachine
180
159
--integrationTest
181
- $(_InternalRuntimeDownloadArgs)
182
160
name : Build
183
161
displayName : Build
184
162
condition : succeeded()
185
-
163
+
186
164
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
187
165
- template : eng/common/templates-official/post-build/post-build.yml@self
188
166
parameters :
0 commit comments