You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
hello @muchnik, sorry for no response. currently this plugin is not actively developed, but contributions are always welcome. Most of latest releases are pure community contributed.
Can you explain what you expect in (2) ? try..catch clause for Jenkins file pipeline?
@scaytrase
I have 3 suggestions to fix this problem: first is to make retries on plugin side for retriable exceptions, second is to return actual job status from notifyBitbucket() which is now always returns true -- this can break back compatibility, third is to add flag to configuration that allows exception propagation onto client side, so we can use try...catch in Jenkinsfile.
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 returnstrue
and catches exception by itself.What i suggest is to:
The text was updated successfully, but these errors were encountered: