Skip to content

Commit 4b1502b

Browse files
authored
Merge pull request #2489 from dscho/azp-latest-pools
Azure Pipeline: switch to the latest agent pools See https://devblogs.microsoft.com/devops/removing-older-images-in-azure-pipelines-hosted-pools/ for details.
2 parents 387e710 + 5e47a24 commit 4b1502b

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

azure-pipelines.yml

+25-12
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ jobs:
55
- job: windows_build
66
displayName: Windows Build
77
condition: succeeded()
8-
pool: Hosted
8+
pool:
9+
vmImage: windows-latest
910
timeoutInMinutes: 240
1011
steps:
1112
- powershell: |
@@ -61,7 +62,8 @@ jobs:
6162
displayName: Windows Test
6263
dependsOn: windows_build
6364
condition: succeeded()
64-
pool: Hosted
65+
pool:
66+
vmImage: windows-latest
6567
timeoutInMinutes: 240
6668
strategy:
6769
parallel: 10
@@ -133,7 +135,8 @@ jobs:
133135
- job: vs_build
134136
displayName: Visual Studio Build
135137
condition: succeeded()
136-
pool: Hosted VS2017
138+
pool:
139+
vmImage: windows-latest
137140
timeoutInMinutes: 240
138141
steps:
139142
- powershell: |
@@ -181,6 +184,7 @@ jobs:
181184
platform: x64
182185
configuration: Release
183186
maximumCpuCount: 4
187+
msbuildArguments: /p:PlatformToolset=v142
184188
- powershell: |
185189
& compat\vcbuild\vcpkg_copy_dlls.bat release
186190
if (!$?) { exit(1) }
@@ -224,7 +228,8 @@ jobs:
224228
displayName: Visual Studio Test
225229
dependsOn: vs_build
226230
condition: succeeded()
227-
pool: Hosted
231+
pool:
232+
vmImage: windows-latest
228233
timeoutInMinutes: 240
229234
strategy:
230235
parallel: 10
@@ -292,7 +297,8 @@ jobs:
292297
- job: linux_clang
293298
displayName: linux-clang
294299
condition: succeeded()
295-
pool: Hosted Ubuntu 1604
300+
pool:
301+
vmImage: ubuntu-latest
296302
steps:
297303
- bash: |
298304
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
@@ -330,7 +336,8 @@ jobs:
330336
- job: linux_gcc
331337
displayName: linux-gcc
332338
condition: succeeded()
333-
pool: Hosted Ubuntu 1604
339+
pool:
340+
vmImage: ubuntu-latest
334341
steps:
335342
- bash: |
336343
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
@@ -367,7 +374,8 @@ jobs:
367374
- job: osx_clang
368375
displayName: osx-clang
369376
condition: succeeded()
370-
pool: Hosted macOS
377+
pool:
378+
vmImage: macOS-latest
371379
steps:
372380
- bash: |
373381
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
@@ -402,7 +410,8 @@ jobs:
402410
- job: osx_gcc
403411
displayName: osx-gcc
404412
condition: succeeded()
405-
pool: Hosted macOS
413+
pool:
414+
vmImage: macOS-latest
406415
steps:
407416
- bash: |
408417
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
@@ -435,7 +444,8 @@ jobs:
435444
- job: gettext_poison
436445
displayName: GETTEXT_POISON
437446
condition: succeeded()
438-
pool: Hosted Ubuntu 1604
447+
pool:
448+
vmImage: ubuntu-latest
439449
steps:
440450
- bash: |
441451
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
@@ -472,7 +482,8 @@ jobs:
472482
- job: linux32
473483
displayName: Linux32
474484
condition: succeeded()
475-
pool: Hosted Ubuntu 1604
485+
pool:
486+
vmImage: ubuntu-latest
476487
steps:
477488
- bash: |
478489
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
@@ -506,7 +517,8 @@ jobs:
506517
- job: static_analysis
507518
displayName: StaticAnalysis
508519
condition: succeeded()
509-
pool: Hosted Ubuntu 1604
520+
pool:
521+
vmImage: ubuntu-latest
510522
steps:
511523
- bash: |
512524
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1
@@ -526,7 +538,8 @@ jobs:
526538
- job: documentation
527539
displayName: Documentation
528540
condition: succeeded()
529-
pool: Hosted Ubuntu 1604
541+
pool:
542+
vmImage: ubuntu-latest
530543
steps:
531544
- bash: |
532545
test "$GITFILESHAREPWD" = '$(gitfileshare.pwd)' || ci/mount-fileshare.sh //gitfileshare.file.core.windows.net/test-cache gitfileshare "$GITFILESHAREPWD" "$HOME/test-cache" || exit 1

0 commit comments

Comments
 (0)