Azure DevOps: How's the deployment group job status decided?

Viewed 370

I have a deployment group job with setting in below pic as 33%. How's the status of job determined to be "failed" or partially succeeded"? The description of the setting only specifies "It is also used to determine the success and failure conditions during deployment" which is not really clarifying.

enter image description here

In first attempt, status is failed even though only 4 machines didn't succeed

enter image description here

After couple of attempts, status is "partially succeeded" even though 23 failed

enter image description here

2 Answers

I think you should have been know that this does not has any relevant with the number of the failed deployment.

In fact, this only relevant with one option: Continue on error

enter image description here

When you enable this option in the task, even one step failed, it will still continue the deploying. At last, it will display partially succeeded.

Instead, if you did not check this Continue on error option, even it only has one failed step, the status will still display failed.

To verify this, you can check your task configuration which exists in Control Options.

Also, you can check this thread: VSTS Release - Phase with partially succeeded.

Deployment group phase will be “partially succeeded” if deployment is attempted to all the targets, event the deployment is failed in any of the target.

I found the answer from the link in Merlin's answer below : "Deployment group phase will be “partially succeeded” if deployment is attempted to all the targets, event the deployment is failed in any of the target."

Couldn't locate this piece of info anywhere in the official docs.

Related