Reputation: 123
I have a VSTS build setup with multiple agent phases, like this:
On phase 2, I have the setting under Execution Plan for "Run this phase" set to "Only when all previous phases have succeeded." Per Microsoft's own documentation, this is what it should be set to if I want the phases to run sequentially. Parallelism on both phases is set to "None."
However, when I run the build, both phases run simultaneously. Why?
I don't want to just build the file on my on-premise agent because I don't want to install Maven there, for reasons.
Upvotes: 1
Views: 717
Reputation: 29966
Make sure that the previous phase is selected as the Dependency:
Upvotes: 3
Reputation: 38106
Agent Phases do not execute sequentially is mainly caused by the Parallelism option set as Multi-configuration or Multi-agent for an agent phase at least.
So please check all the agent phases, and make sure the Parallelism options as None for all agent phases.
Upvotes: 0