Nazar
Nazar

Reputation: 11

Running a linux docker container and VsTest on same agent

How can I run a linux docker container and VsTest on same agent on a Azure Pipeline?

Windows agents do not accept run a linux container. The linux agent do not run the VsTest task.

The main goal is to run a docker container and execute tests on it. So both must run on the same time.

Upvotes: 1

Views: 549

Answers (1)

4c74356b41
4c74356b41

Reputation: 72151

you cant do that, you need to split your build into 2 phases, one would run on a windows agent, other on linux agent

- job: poo1
  pool:
    vmImage: ubuntu-16.04
  steps:
    ...

- job: pool2
  dependsOn: pool1
  pool:
    vmImage: vs2017-win2016
  steps:
    ...

you can do the same with visual editor

Upvotes: 1

Related Questions