Remove win2016 from Azure devops pipelines. (#9145)

From March 2022, support will be removed.
https://github.com/actions/virtual-environments/issues/4312
This commit is contained in:
Mads Jensen
2022-01-02 00:22:52 +01:00
committed by GitHub
parent 93c2852fdb
commit dc66c87928
3 changed files with 12 additions and 14 deletions
@@ -54,8 +54,12 @@ jobs:
done done
displayName: Run integration tests for Docker images displayName: Run integration tests for Docker images
- job: installer_build - job: installer_build
pool: strategy:
vmImage: vs2017-win2016 matrix:
win-2019:
vmImage: windows-2019
win-2022:
vmImage: windows-2022
steps: steps:
- task: UsePythonVersion@0 - task: UsePythonVersion@0
inputs: inputs:
@@ -87,17 +91,11 @@ jobs:
matrix: matrix:
win2019: win2019:
imageName: windows-2019 imageName: windows-2019
win2016: win2022:
imageName: vs2017-win2016 imageName: windows-2022
pool: pool:
vmImage: $(imageName) vmImage: $(imageName)
steps: steps:
- powershell: |
if ($PSVersionTable.PSVersion.Major -ne 5) {
throw "Powershell version is not 5.x"
}
condition: eq(variables['imageName'], 'vs2017-win2016')
displayName: Check Powershell 5.x is used in vs2017-win2016
- task: UsePythonVersion@0 - task: UsePythonVersion@0
inputs: inputs:
versionSpec: 3.9 versionSpec: 3.9
@@ -13,15 +13,15 @@ jobs:
PYTHON_VERSION: 3.10 PYTHON_VERSION: 3.10
TOXENV: py310-cover TOXENV: py310-cover
windows-py36: windows-py36:
IMAGE_NAME: vs2017-win2016 IMAGE_NAME: windows-2019
PYTHON_VERSION: 3.6 PYTHON_VERSION: 3.6
TOXENV: py36-win TOXENV: py36-win
windows-py39-cover: windows-py39-cover:
IMAGE_NAME: vs2017-win2016 IMAGE_NAME: windows-2019
PYTHON_VERSION: 3.9 PYTHON_VERSION: 3.9
TOXENV: py39-cover-win TOXENV: py39-cover-win
windows-integration-certbot: windows-integration-certbot:
IMAGE_NAME: vs2017-win2016 IMAGE_NAME: windows-2019
PYTHON_VERSION: 3.9 PYTHON_VERSION: 3.9
TOXENV: integration-certbot TOXENV: integration-certbot
linux-oldest-tests-1: linux-oldest-tests-1:
@@ -3,7 +3,7 @@ stages:
jobs: jobs:
- job: prepare - job: prepare
pool: pool:
vmImage: vs2017-win2016 vmImage: win2019
steps: steps:
# If we change the output filename from `release_notes.md`, it should also be changed in tools/create_github_release.py # If we change the output filename from `release_notes.md`, it should also be changed in tools/create_github_release.py
- bash: | - bash: |