I have a VSTS build setup with multiple agent phases, like this:
- Agent 1 (Hosted by MS): Build a WAR file using Maven
- Agent 2 (On-premise, private): Copy file to target VM behind firewall
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.