I have an AzP job with a matrix where one needs to run in a Container (old compiler test) How can I conditionally run the jop inside the container? I tried the below but that doesn't seem to work, i.e. the container is never used although I'm pretty sure I followed all instructions from the docs
stages:
- stage: Test
jobs:
- job: 'Linux'
strategy:
matrix:
GCC_10:
CXX: g++-10
VM_IMAGE: ubuntu-20.04
GCC_9:
CXX: g++-9
VM_IMAGE: ubuntu-20.04
Clang_3_7:
CXX: clang++-3.7
VM_IMAGE: ubuntu-20.04
CONTAINER: ubuntu:16.04
pool:
vmImage: $(VM_IMAGE)
${{ if variables['CONTAINER'] }}:
container:
image: $[ variables['CONTAINER'] ]
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"