Don't fail a build if a specific step fails

I need to have a build flagged as successful even if a specific step fails.

The issue I have is that my build triggers 2 deployments in Octopus Deploy with the second one being tenanted and it may not have any tenants configured at the time of the build. So while I want every other step to fail the build if they fail but I don't want this specific step to fail the build if it does not work.

 

0
2 comments

Hello,

Perhaps you can mark the build as successful using the REST API if certain conditions are met:

https://youtrack.jetbrains.com/issue/TW-38093/REST-API.-Allow-to-change-the-status-for-the-finished-build.#focus=Comments-27-5745867.0-0

Perhaps you can do it using a new build configuration that has a finish build trigger on this one and change the build status if certain conditions are met. An alternative could also be to add a build step to the end of the current build that executes based on the condition "Only if build status is failed".

Thanks,

Guilherme

Thank you,

Guilherme

 

 

0

Thanks I will investigate the API and see what it can do.

0

Please sign in to leave a comment.