File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222trigger :
2323 - master
2424
25+ variables :
26+ # ubuntu version
27+ os_version : ' 22.04'
28+
2529pool :
2630 # there is no /dev/stderr on this azure build!
2731 # vmImage: 'ubuntu-latest'
28- # Ubuntu 16 .04 required for docker container support, looks like 18.04 works too
29- vmImage : ' ubuntu-22.04 '
32+ # vmImage: 'ubuntu-22 .04'
33+ vmImage : ' ubuntu-$(os_version) '
3034
3135# unprivileged container without sudo, cannot install dependencies
32- # container: ubuntu:18 .04
36+ # container: ubuntu:22 .04
3337
3438steps :
39+ - script : cat /etc/*-release
40+ displayName : OS Release
41+
3542 # requires script as first key, otherwise parsing breaks with error message: Unexpected value 'displayName'
3643 - script : env | sort
37- displayName : env
44+ displayName : Environment
3845
3946 # doesn't work in container due to unprivileged execution and lack of sudo
4047 # - script: sudo apt-get update && sudo apt-get install -y git make
5057
5158 # hacky workaround to Azure Pipelines ubuntu environment limitations of unprivileged container and no /dev/stderr in vmImage :-(
5259 - script : |
53- sudo docker run -v "$PWD":/code ubuntu:18.04 /bin/bash -c '
60+ sudo docker run -v "$PWD":/code " ubuntu:$(os_version)" /bin/bash -c '
5461 set -ex
5562 cd /code
5663 setup/ci_bootstrap.sh
You can’t perform that action at this time.
0 commit comments