Skip to content

Commit 2ff0c6b

Browse files
committed
updated azure-pipelines.yml
1 parent 68cdf7d commit 2ff0c6b

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

azure-pipelines.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,26 @@
2222
trigger:
2323
- master
2424

25+
variables:
26+
# ubuntu version
27+
os_version: '22.04'
28+
2529
pool:
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

3438
steps:
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
@@ -50,7 +57,7 @@ steps:
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

0 commit comments

Comments
 (0)