I have a workflow that runs on multiple servers simultaneously. I need the workflow to stop as soon as it fails on any one of the servers. Currently it will just continue to run even if it fails. Any suggestions.
You can run flow on second server type that check the status of the deployment and if the status is running with errors it should failed the deployment (Use ROC - failed deployment action)
I have seen even after using the ROC - Fail Deployment action the workflow continues to proceed. The action merely marks the deployment as failed but the workflow doesnot stop. Any suggestions on that
Does the workflow include more many actions or just one or two?
The current running action will run an only the rest of the step should be stop.
Another option is to use stop release API
My workflow consists of a lot of actions. Can you provide more details on the stop release API.
You can check REST API guide:
/stop-release - CA Release Automation - 6.2 - CA Technologies Documentation
I have one more question. I am using multiple server types in the workflow. I want the process to stop on one of the server types which has multiple servers assigned to it. Is there a way of doing it? I mean if it fails on one server I want it to skip the rest of the servers on that particular server type and move to the next server type. Let me know if you understand my query or else I can explain you entirely what i have been working on.
You can't stop the work on a single server type but the complete process , if you have some way to verify the workflow if failing without reaching failed pause state that you can create logic to cancel the rest of the workflow (You will need to make sure other servers in the same server type will cancel there work as well (This might be complex logic)
By default I think it is set to run the process on all agent machines of the same server type at the same time. I wonder if setting the server type to concurrently run the process on a maximum of 1 server and then failing the step would yield the result you're after.
Did the answers, answered your question? If it did please mark it as the right answer. When your question is not answered or you still have additional questions please let us know.
With Kind Regards
Marked answered as correct from Jacky as it answer the primary question of stop release/process