'Why a tfs 2018 deployment group phase will run after previous one partially failed?

I am a TFS 2018 update 2 user. I use release management as my CD solution. I create a release definition consists of multiple deployment group phases. I execute this release definition, I found one of my deployment group phase partially failed. as the following screenshot shows: enter image description here

I think my release definition will stop right after this partially failed deployment group phase, but it doesn't. It runs next deployment group phase(as my screenshot shows). I am sure all of the deployment phases had set "Only when all previous phases have succeeded".

What happened? and anyone had a solution/workaround?



Solution 1:[1]

Make sure the control option Continue on error is disabled(uncheck) on the specific failed task.

Based on your screenshot the previous phase is partially SUCCEEDED (partially failed).

The systems will continue to run subsequent tasks/phases if the previous tasks/phases is partially SUCCEEDED.

To stop the next phases/tasks, you need to completely fail the previous task/phase (Disable control option Continue on error).

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andy Li-MSFT