When trying to run a release pipeline in Azure DevOps, the following warning started to appear for all our builds:
Ubuntu 16.04 LTS environment is deprecated and will be removed on September 20, 2021. Migrate to ubuntu-latest instead.
To get rid of this warning, we had to explicitly specify the vmImage property inside our YAML build template:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- stage: DEV | |
jobs: | |
- deployment: DeployDEV | |
pool: | |
vmImage: 'ubuntu-latest' |
More information: https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema%2Cparameter-schema#pool