Jenkins bitbucket Git plugin is not working properly as remote host is shutting down the connection

XMLWordPrintable

      Hi,

      We are using git plugin with Bitbucket to trigger our CI, the CI is triggering huge number of builds for all opened PR even if no update was added to it. Going through the logs of jenkins master, we were able to see the following exception, can you please let us know why you are rejecting our ssl certificate of jenkins-ci.freightos.com domain:
      Aug 18, 2019 2:28:22 PM WARNING bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.ApiClient send
      Failed to send request.
      java.io.EOFException: SSL peer shut down incorrectly
      at sun.security.ssl.InputRecord.read(InputRecord.java:505)
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
      Caused: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
      at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:994)
      at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
      at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:750)
      at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
      at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
      at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:835)
      at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2123)
      at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1103)
      at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:405)
      at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:178)
      at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:404)
      at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:330)
      at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.ApiClient.send(ApiClient.java:180)
      at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.ApiClient.get(ApiClient.java:126)
      at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.bitbucket.cloud.CloudApiClient.hasBuildStatus(CloudApiClient.java:54)
      at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository.isBuildTarget(BitbucketRepository.java:306)
      at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketRepository.getTargetPullRequests(BitbucketRepository.java:120)
      at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketPullRequestsBuilder.run(BitbucketPullRequestsBuilder.java:37)
      at bitbucketpullrequestbuilder.bitbucketpullrequestbuilder.BitbucketBuildTrigger$TriggerRunnable.run(BitbucketBuildTrigger.java:402)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

      Regards,

      Rawan

            Assignee:
            Unassigned
            Reporter:
            Rawan Herzallah
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: