|
24 | 24 | DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
25 | 25 | DOTNET_MULTILEVEL_LOOKUP: 0
|
26 | 26 | pool:
|
27 |
| - name: DotnetBuild-1ES-Linux |
28 |
| - demands: |
29 |
| - - agent.os -equals linux |
| 27 | + name: NetCore1ESPool-Internal |
| 28 | + demands: ImageOverride -equals Build.Ubuntu.1804.Amd64 |
30 | 29 | container: CentosContainer
|
31 | 30 | steps:
|
32 | 31 | - script: ./restore.sh
|
|
57 | 56 | DOTNET_MULTILEVEL_LOOKUP: 0
|
58 | 57 | ROOTFS_DIR: '/crossrootfs/arm'
|
59 | 58 | pool:
|
60 |
| - name: DotnetBuild-1ES-Linux |
61 |
| - demands: |
62 |
| - - agent.os -equals linux |
| 59 | + name: NetCore1ESPool-Internal |
| 60 | + demands: ImageOverride -equals Build.Ubuntu.1804.Amd64 |
63 | 61 | container: UbuntuCrossArmContainer
|
64 | 62 | steps:
|
65 | 63 | - script: ./restore.sh
|
|
90 | 88 | DOTNET_MULTILEVEL_LOOKUP: 0
|
91 | 89 | ROOTFS_DIR: '/crossrootfs/arm64'
|
92 | 90 | pool:
|
93 |
| - name: DotnetBuild-1ES-Linux |
94 |
| - demands: |
95 |
| - - agent.os -equals linux |
| 91 | + name: NetCore1ESPool-Internal |
| 92 | + demands: ImageOverride -equals Build.Ubuntu.1804.Amd64 |
96 | 93 | container: UbuntuCrossArm64Container
|
97 | 94 | steps:
|
98 | 95 | - script: ./restore.sh
|
@@ -197,17 +194,17 @@ jobs:
|
197 | 194 | _UseEsrpSigning: true
|
198 | 195 | _TeamName: DotNetCore
|
199 | 196 | pool:
|
200 |
| - name: DotNetCore-Build-1ES |
201 |
| - demands: |
202 |
| - - agent.os -equals Windows_NT |
| 197 | + name: NetCore1ESPool-Internal |
| 198 | + demands: ImageOverride -equals Build.Server.Amd64.VS2019 |
203 | 199 | steps:
|
204 | 200 |
|
205 |
| - - task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1 |
| 201 | + - task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@4 |
206 | 202 | displayName: Install MicroBuild Signing Plugin
|
207 | 203 | inputs:
|
208 | 204 | signType: '$(_SignType)'
|
209 | 205 | zipSources: false
|
210 | 206 | esrpSigning: '$(_UseEsrpSigning)'
|
| 207 | + feedSource: 'https://dnceng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json' |
211 | 208 | env:
|
212 | 209 | TeamName: $(_TeamName)
|
213 | 210 | continueOnError: false
|
@@ -250,17 +247,17 @@ jobs:
|
250 | 247 | _UseEsrpSigning: true
|
251 | 248 | _TeamName: DotNetCore
|
252 | 249 | pool:
|
253 |
| - name: DotNetCore-Build-1ES |
254 |
| - demands: |
255 |
| - - agent.os -equals Windows_NT |
| 250 | + name: NetCore1ESPool-Internal |
| 251 | + demands: ImageOverride -equals Build.Server.Amd64.VS2019 |
256 | 252 | steps:
|
257 | 253 |
|
258 |
| - - task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1 |
| 254 | + - task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@4 |
259 | 255 | displayName: Install MicroBuild Signing Plugin
|
260 | 256 | inputs:
|
261 | 257 | signType: '$(_SignType)'
|
262 | 258 | zipSources: false
|
263 | 259 | esrpSigning: '$(_UseEsrpSigning)'
|
| 260 | + feedSource: 'https://dnceng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json' |
264 | 261 | env:
|
265 | 262 | TeamName: $(_TeamName)
|
266 | 263 | continueOnError: false
|
@@ -305,32 +302,51 @@ jobs:
|
305 | 302 | - Windows_x64
|
306 | 303 | - MacOS_Apple_Silicon
|
307 | 304 | variables:
|
308 |
| - BuildConfig: Release |
309 |
| - OfficialBuildId: $(BUILD.BUILDNUMBER) |
310 |
| - DotnetVersionKind: $[variables.VERSIONKIND] # If no "VERSIONKIND" variable is set when queuing the publishing task, this defaults to empty string. |
311 |
| - DOTNET_CLI_TELEMETRY_OPTOUT: 1 |
312 |
| - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 |
313 |
| - DOTNET_MULTILEVEL_LOOKUP: 0 |
314 |
| - NUGET_PACKAGES: $(Build.SourcesDirectory)/.packages |
315 |
| - _SignType: real |
316 |
| - _UseEsrpSigning: true |
317 |
| - _TeamName: DotNetCore |
318 |
| - _AzureDevopsFeedUrl: https://pkgs.dev.azure.com/dnceng/public/_packaging/MachineLearning/nuget/v3/index.json |
319 |
| - _SymwebSymbolServerPath: https://microsoft.artifacts.visualstudio.com/DefaultCollection |
320 |
| - _MsdlSymbolServerPath: https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection |
| 305 | + - name: BuildConfig |
| 306 | + value: Release |
| 307 | + - name: OfficialBuildId |
| 308 | + value: $(BUILD.BUILDNUMBER) |
| 309 | + - name: DotnetVersionKind |
| 310 | + value: $[variables.VERSIONKIND] # If no "VERSIONKIND" variable is set when queuing the publishing task, this defaults to empty string. |
| 311 | + - name: DOTNET_CLI_TELEMETRY_OPTOUT |
| 312 | + value: 1 |
| 313 | + - name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE |
| 314 | + value: 1 |
| 315 | + - name: DOTNET_MULTILEVEL_LOOKUP |
| 316 | + value: 0 |
| 317 | + - name: NUGET_PACKAGES |
| 318 | + value: $(Build.SourcesDirectory)/.packages |
| 319 | + - name: _SignType |
| 320 | + value: real |
| 321 | + - name: _UseEsrpSigning |
| 322 | + value: true |
| 323 | + - name: _TeamName |
| 324 | + value: DotNetCore |
| 325 | + - name: _AzureDevopsFeedUrl |
| 326 | + value: https://pkgs.dev.azure.com/dnceng/public/_packaging/MachineLearning/nuget/v3/index.json |
| 327 | + - name: _SymwebSymbolServerPath |
| 328 | + value: https://microsoft.artifacts.visualstudio.com/DefaultCollection |
| 329 | + - name: _MsdlSymbolServerPath |
| 330 | + value: https://microsoftpublicsymbols.artifacts.visualstudio.com/DefaultCollection |
| 331 | + |
| 332 | + # Only enable publishing in non-public, non PR scenarios. |
| 333 | + - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: |
| 334 | + # DotNet-Symbol-Server-Pats provides: microsoft-symbol-server-pat symweb-symbol-server-pat |
| 335 | + - group: DotNet-Symbol-Server-Pats |
| 336 | + |
321 | 337 | pool:
|
322 |
| - name: DotNetCore-Build-1ES |
323 |
| - demands: |
324 |
| - - agent.os -equals Windows_NT |
| 338 | + name: NetCore1ESPool-Internal |
| 339 | + demands: ImageOverride -equals Build.Server.Amd64.VS2019 |
325 | 340 | steps:
|
326 | 341 |
|
327 | 342 | # Install MicroBuild plugin
|
328 |
| - - task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@1 |
| 343 | + - task: ms-vseng.MicroBuildTasks.30666190-6959-11e5-9f96-f56098202fef.MicroBuildSigningPlugin@4 |
329 | 344 | displayName: Install MicroBuild Signing Plugin
|
330 | 345 | inputs:
|
331 | 346 | signType: '$(_SignType)'
|
332 | 347 | zipSources: false
|
333 | 348 | esrpSigning: '$(_UseEsrpSigning)'
|
| 349 | + feedSource: 'https://dnceng.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json' |
334 | 350 | env:
|
335 | 351 | TeamName: $(_TeamName)
|
336 | 352 | continueOnError: false
|
@@ -373,31 +389,27 @@ jobs:
|
373 | 389 | artifactType: container
|
374 | 390 | continueOnError: true
|
375 | 391 |
|
376 |
| - - task: NuGetAuthenticate@0 |
377 |
| - inputs: |
378 |
| - nuGetServiceConnections: machinelearning-dnceng-public-feed # To allow publishing to a feed of another organization |
379 |
| - |
380 | 392 | - task: NuGetCommand@2
|
381 | 393 | displayName: Push packages to AzureDevOps feed
|
382 | 394 | inputs:
|
383 | 395 | command: push
|
| 396 | + nuGetFeedType: 'internal' |
| 397 | + publishVstsFeed: 'public/MachineLearning' |
384 | 398 | packagesToPush: $(Build.SourcesDirectory)/artifacts/**/*.nupkg;!$(Build.SourcesDirectory)/artifacts/**/*.snupkg
|
385 |
| - nuGetFeedType: external |
386 |
| - publishFeedCredentials: machinelearning-dnceng-public-feed |
387 | 399 |
|
388 | 400 | - task: MSBuild@1
|
389 | 401 | displayName: Publish Symbols to SymWeb Symbol Server
|
390 | 402 | inputs:
|
391 | 403 | solution: build/publish.proj
|
392 |
| - msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_SymwebSymbolServerPath) /p:SymbolServerPAT=$(SymwebSymbolServerPAT) |
| 404 | + msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_SymwebSymbolServerPath) /p:SymbolServerPAT=$(symweb-symbol-server-pat) |
393 | 405 | msbuildVersion: 15.0
|
394 | 406 | continueOnError: true
|
395 | 407 |
|
396 | 408 | - task: MSBuild@1
|
397 | 409 | displayName: Publish Symbols to Msdl Symbol Server
|
398 | 410 | inputs:
|
399 | 411 | solution: build/publish.proj
|
400 |
| - msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_MsdlSymbolServerPath) /p:SymbolServerPAT=$(MsdlSymbolServerPAT) |
| 412 | + msbuildArguments: /t:PublishSymbolPackages /p:SymbolServerPath=$(_MsdlSymbolServerPath) /p:SymbolServerPAT=$(microsoft-symbol-server-pat) |
401 | 413 | msbuildVersion: 15.0
|
402 | 414 | continueOnError: true
|
403 | 415 |
|
|
0 commit comments