So we are heading with some network problems, that results in SocketException on notifying bitbucket and we can't really do anything about it, because notifyBitbucket() method always returns true and catches exception by itself.
What i suggest is to:
- Implement retries on notify for retryable errors
- Propagate actual job status (true or false) from method call, so clients can make retries themselves.
- Add option that enables exception propagation to client side
14:35:47 Notifying Stash at "<...>"
14:35:51 Caught exception while notifying Stash with id <...>
14:35:51 java.net.SocketException: Connection reset
So we are heading with some network problems, that results in SocketException on notifying bitbucket and we can't really do anything about it, because
notifyBitbucket()method always returnstrueand catches exception by itself.What i suggest is to: