Switch to non `-Int` pools and clear NuGet caches

- aspnet/AspNetCore-Internal#2436
- aspnet/AspNetCore#9767
This commit is contained in:
Doug Bunting 2019-05-04 19:42:53 -07:00 committed by Doug Bunting
parent e96a53f9e7
commit 6a6a119c9a
1 changed files with 8 additions and 2 deletions

View File

@ -78,10 +78,10 @@ jobs:
vmImage: ubuntu-16.04
${{ if and(eq(parameters.poolName, ''), eq(parameters.agentOs, 'Windows')) }}:
${{ if eq(variables['System.TeamProject'], 'public') }}:
name: NetCorePublic-Int-Pool
name: NetCorePublic-Pool
queue: BuildPool.Windows.10.Amd64.VS2017.Open
${{ if ne(variables['System.TeamProject'], 'public') }}:
name: NetCoreInternal-Int-Pool
name: NetCoreInternal-Pool
queue: BuildPool.Windows.10.Amd64.VS2017
variables:
AgentOsName: ${{ parameters.agentOs }}
@ -109,6 +109,12 @@ jobs:
- ${{ if eq(parameters.agentOs, 'Windows') }}:
- powershell: ./eng/scripts/InstallJdk.ps1 '11.0.1'
displayName: Install JDK 11
- task: NuGetCommand@2
displayName: 'Clear NuGet caches'
condition: succeeded()
inputs:
command: custom
arguments: 'locals all -clear'
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.agentOs, 'Windows'), eq(parameters.codeSign, 'true')) }}:
- task: MicroBuildSigningPlugin@1
displayName: Install MicroBuild Signing plugin