rest_cherrypy - salt-api - How to change HTTP response status from runner client? #37458
Labels
Duplicate
Duplicate of another issue or PR - will be closed
Feature
new functionality including changes to functionality and code refactors, etc.
P1
Priority 1
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-low
4th level, cosemtic problems, work around exists
Milestone
I'm using the Salt-Api with the runner client for a long time but there's one specific requirement for our team to have specific HTTP status on the api returns based on the execution of our runners.
What happens is that I'm unable to specify in the runner level what should be the HTTP status code for specific conditions of the runner execution:
So, for example, we have a runner that does an automated deployment in all our nodes for a specific application. It can handle all the issues that can potentially happen in the deploy, including rollbacks. But since a valid and correct response of 200 from the API gives Jenkins the false impression that the deploy was successful even when it failed. This is a requirement from our development team to have proper HTTP status responses based on the outcome of the deployment execution.
Is there any way I can achieve this using the current restcherry api implementation?
The text was updated successfully, but these errors were encountered: