teameh / bitrise-step-bitbucket-server-post-build-status

MIT License
3 stars 8 forks source link

Fail step when request fails and added an input to fail the step when a specific response code is returned. #9

Closed geekkoz closed 3 months ago

geekkoz commented 1 year ago
teameh commented 10 months ago

Hi @geekkoz,

Sorry for my late response..

Could you explain why you would need this?

geekkoz commented 4 months ago

Hello @teameh ,

There are some cases where posting to BB server fails due server unavailable for maintenance or something else but the step is count as succeed when this should have failed as status could not be posted, so, the idea is that we can add a response code that can be handled as step fail so we can retry the step and not the entire pipeline.

I hope this make it a little bit more clear :)

teameh commented 3 months ago

Hi @geekkoz, so currently the step will look like a success if bitbucket is unavailable?

geekkoz commented 3 months ago

@teameh actually it was meant to do the opposite, fail the step ig 302 or any other, at the moment the step marks as success and then we would need to retry the entire pipeline for getting a BB build update, but with this we would only need to retry this step only in that case.