Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42000

GitHub organization job losing build history

    XMLWordPrintable

Details

    Description

      We have a large GitHub organization folder job (over 100 repos) that is scanned every 15 mins for changes. Occasionally (usually overnight I think) branches are losing the build history and are reset to build number 1.

      I suspect the branch indexing is somehow losing communication with GitHub and the branch is deleted and then recreated on the next successful scan. Note this doesn't appear to happen in business hours, so possibly is a result of overnight resource conservation (Jenkins is not currently shutdown overnight).

      As a workaround I have configured to not delete branches unless unchanged for 7 days, however some branches are not updated this frequently, and I don't want to extend this period as we'll have too many jobs hanging around.

      Note also that we don't currently use webhooks to detect changes, which is why it is a periodic scan every 15 mins.

      Attachments

        Issue Links

          Activity

            Can you provide the plugin versions?

            stephenconnolly Stephen Connolly added a comment - Can you provide the plugin versions?

            fortuna Can you please set the system property com.cloudbees.hudson.plugins.folder.computed.BACKUP_LOG_COUNT to something high enough to catch the failure, e.g.

            24h / 15min = 96

            So

            -Dcom.cloudbees.hudson.plugins.folder.computed.FolderComputation.BACKUP_LOG_COUNT=100

            Would suffice.

            Note, if you do not want to restart your master you can set this value by the Groocy console with the script:

            com.cloudbees.hudson.plugins.folder.computed.FolderComputation.BACKUP_LOG_COUNT=100
            

            (to clear it again just remove the system property or set the value to null via the groovy console)

            Then wait for a failure to occur, and find the indexing/indexing.log.N which has the failure (will likely be the one with Will remove in the log text, e.g.

            grep "Will remove" indexing.log*
            

            but will have a Finished: SUCCESS. OTOH if you have an orphaned item strategy that is retaining them for a period of time it may be harder to find the one with the suppressed (but hopefully logged) stack trace.
            )

            stephenconnolly Stephen Connolly added a comment - fortuna Can you please set the system property com.cloudbees.hudson.plugins.folder.computed.BACKUP_LOG_COUNT to something high enough to catch the failure, e.g. 24h / 15min = 96 So -Dcom.cloudbees.hudson.plugins.folder.computed.FolderComputation.BACKUP_LOG_COUNT=100 Would suffice. Note, if you do not want to restart your master you can set this value by the Groocy console with the script: com.cloudbees.hudson.plugins.folder.computed.FolderComputation.BACKUP_LOG_COUNT=100 (to clear it again just remove the system property or set the value to null via the groovy console) Then wait for a failure to occur, and find the indexing/indexing.log.N which has the failure (will likely be the one with Will remove in the log text, e.g. grep "Will remove" indexing.log* but will have a Finished: SUCCESS . OTOH if you have an orphaned item strategy that is retaining them for a period of time it may be harder to find the one with the suppressed (but hopefully logged) stack trace. )

            I am suspecting the root cause is: https://github.com/jenkinsci/branch-api-plugin/blob/1a964d93041d0600c03ba2dc89ce3a139ccbc487/src/main/java/jenkins/branch/OrganizationFolder.java#L1262-L1264 suppressing the exception.

            Here is a log from manual testing of org folders for JENKINS-36029

            Started by user anonymous
            [Tue Feb 14 13:54:12 GMT 2017] Starting organization scan...
            [Tue Feb 14 13:54:12 GMT 2017] Updating actions...
            Looking up team details of cloudbeers...
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            Team: cloudbeers
            [Tue Feb 14 13:54:14 GMT 2017] Consulting Bitbucket Team/Project
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            Looking up repositories of team cloudbeers
            Proposing multibranch-demo
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            Repository type: Git
            Looking up cloudbeers/multibranch-demo for branches
            Checking branch awesome from cloudbeers/multibranch-demo
                  ‘Jenkinsfile’ found
            Met criteria
            Checking branch master from cloudbeers/multibranch-demo
                  ‘Jenkinsfile’ found
            Met criteria
            Checking branch pinned-lib-version from cloudbeers/multibranch-demo
                  ‘Jenkinsfile’ found
            Met criteria
            Looking up cloudbeers/multibranch-demo for pull requests
            Skipping pull requests for public repositories
            Proposing potential-train
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            Repository type: Git
            Looking up cloudbeers/potential-train for branches
            Checking branch master from cloudbeers/potential-train
                  ‘Jenkinsfile’ found
            Met criteria
            Checking branch origin-pr-branch from cloudbeers/potential-train
                  ‘Jenkinsfile’ found
            Met criteria
            Checking branch no-jenkinsfile from cloudbeers/potential-train
                  ‘Jenkinsfile’ not found
            Does not meet criteria
            Looking up cloudbeers/potential-train for pull requests
            Skipping pull requests for public repositories
            Proposing refactored-dollop
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            Repository type: Git
            Looking up cloudbeers/refactored-dollop for branches
            Checking branch master from cloudbeers/refactored-dollop
                  ‘Jenkinsfile’ not found
            Does not meet criteria
            Looking up cloudbeers/refactored-dollop for pull requests
            Skipping pull requests for public repositories
            Proposing glowing-rotary-phone
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            Repository type: Git
            Looking up cloudbeers/glowing-rotary-phone for branches
            Checking branch master from cloudbeers/glowing-rotary-phone
                  ‘Jenkinsfile’ not found
            Does not meet criteria
            Looking up cloudbeers/glowing-rotary-phone for pull requests
            Skipping pull requests for public repositories
            Proposing stunning-octo-tribble
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            Repository type: Git
            Looking up cloudbeers/stunning-octo-tribble for branches
            Checking branch master from cloudbeers/stunning-octo-tribble
                  ‘Jenkinsfile’ not found
            Does not meet criteria
            Looking up cloudbeers/stunning-octo-tribble for pull requests
            Proposing jubilant-succotash
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            Repository type: Git
            Looking up cloudbeers/jubilant-succotash for branches
            Checking branch master from cloudbeers/jubilant-succotash
                  ‘Jenkinsfile’ not found
            Does not meet criteria
            Looking up cloudbeers/jubilant-succotash for pull requests
            ERROR: Failed to create or update a subproject jubilant-succotash
            java.io.IOException: Communication error for url: https://bitbucket.org/api/2.0/repositories/cloudbeers/jubilant-succotash/pullrequests?page=1&pagelen=50
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getPullRequests(BitbucketCloudApiClient.java:183)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrievePullRequests(BitbucketSCMSource.java:335)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:325)
            	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
            	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
            	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187)
            	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
            	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
            	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
            	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
            	at hudson.model.ResourceController.execute(ResourceController.java:98)
            	at hudson.model.Executor.run(Executor.java:410)
            Caused by: java.net.SocketTimeoutException: Read timed out
            	at java.net.SocketInputStream.socketRead0(Native Method)
            	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
            	at java.net.SocketInputStream.read(SocketInputStream.java:170)
            	at java.net.SocketInputStream.read(SocketInputStream.java:141)
            	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
            	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
            	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
            	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)
            	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
            	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
            	at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
            	at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
            	at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
            	at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
            	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
            	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
            	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
            	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561)
            	... 16 more
            Proposing stunning-adventure
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            ERROR: Failed to create or update a subproject stunning-adventure
            java.io.IOException: Communication error for url: https://bitbucket.org/api/2.0/repositories/cloudbeers/stunning-adventure
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRepository(BitbucketCloudApiClient.java:232)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.getRepositoryType(BitbucketSCMSource.java:284)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:320)
            	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
            	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
            	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187)
            	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
            	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
            	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
            	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
            	at hudson.model.ResourceController.execute(ResourceController.java:98)
            	at hudson.model.Executor.run(Executor.java:410)
            Caused by: java.net.UnknownHostException: bitbucket.org
            	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
            	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
            	at java.net.Socket.connect(Socket.java:589)
            	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
            	at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:472)
            	at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153)
            	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
            	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
            	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
            	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561)
            	... 16 more
            Proposing refactored-guacamole
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            ERROR: Failed to create or update a subproject refactored-guacamole
            java.io.IOException: Communication error for url: https://bitbucket.org/api/2.0/repositories/cloudbeers/refactored-guacamole
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRepository(BitbucketCloudApiClient.java:232)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.getRepositoryType(BitbucketSCMSource.java:284)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:320)
            	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
            	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
            	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187)
            	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
            	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
            	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
            	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
            	at hudson.model.ResourceController.execute(ResourceController.java:98)
            	at hudson.model.Executor.run(Executor.java:410)
            Caused by: java.net.UnknownHostException: bitbucket.org
            	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
            	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
            	at java.net.Socket.connect(Socket.java:589)
            	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
            	at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:472)
            	at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153)
            	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
            	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
            	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
            	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561)
            	... 16 more
            Proposing shiny-telegram
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            ERROR: Failed to create or update a subproject shiny-telegram
            java.io.IOException: Communication error for url: https://bitbucket.org/api/2.0/repositories/cloudbeers/shiny-telegram
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRepository(BitbucketCloudApiClient.java:232)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.getRepositoryType(BitbucketSCMSource.java:284)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:320)
            	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
            	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
            	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187)
            	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
            	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
            	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
            	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
            	at hudson.model.ResourceController.execute(ResourceController.java:98)
            	at hudson.model.Executor.run(Executor.java:410)
            Caused by: java.net.UnknownHostException: bitbucket.org
            	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
            	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
            	at java.net.Socket.connect(Socket.java:589)
            	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
            	at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:472)
            	at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153)
            	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
            	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
            	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
            	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561)
            	... 16 more
            Proposing rebuild-branch
            Connecting to https://bitbucket.org using stephenc/****** (bitbucket.org)
            ERROR: Failed to create or update a subproject rebuild-branch
            java.io.IOException: Communication error for url: https://bitbucket.org/api/2.0/repositories/cloudbeers/rebuild-branch
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRepository(BitbucketCloudApiClient.java:232)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.getRepositoryType(BitbucketSCMSource.java:284)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:320)
            	at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300)
            	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254)
            	at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187)
            	at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211)
            	at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187)
            	at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400)
            	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219)
            	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141)
            	at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851)
            	at hudson.model.ResourceController.execute(ResourceController.java:98)
            	at hudson.model.Executor.run(Executor.java:410)
            Caused by: java.net.UnknownHostException: bitbucket.org
            	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
            	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
            	at java.net.Socket.connect(Socket.java:589)
            	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
            	at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:472)
            	at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153)
            	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
            	at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127)
            	at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
            	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
            	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
            	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553)
            	at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561)
            	... 16 more
            [Tue Feb 14 13:55:27 GMT 2017] Finished organization scan. Scan took 1 min 15 sec
            Evaluating orphaned items in cloudbeers
            Will remove cloudbeers/shiny-telegram as it is #1 in the list
            Will remove cloudbeers/refactored-guacamole as it is #2 in the list
            Will remove cloudbeers/stunning-adventure as it is #3 in the list
            Finished: SUCCESS
            
            stephenconnolly Stephen Connolly added a comment - I am suspecting the root cause is: https://github.com/jenkinsci/branch-api-plugin/blob/1a964d93041d0600c03ba2dc89ce3a139ccbc487/src/main/java/jenkins/branch/OrganizationFolder.java#L1262-L1264 suppressing the exception. Here is a log from manual testing of org folders for JENKINS-36029 Started by user anonymous [Tue Feb 14 13:54:12 GMT 2017] Starting organization scan... [Tue Feb 14 13:54:12 GMT 2017] Updating actions... Looking up team details of cloudbeers... Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) Team: cloudbeers [Tue Feb 14 13:54:14 GMT 2017] Consulting Bitbucket Team/Project Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) Looking up repositories of team cloudbeers Proposing multibranch-demo Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) Repository type: Git Looking up cloudbeers/multibranch-demo for branches Checking branch awesome from cloudbeers/multibranch-demo ‘Jenkinsfile’ found Met criteria Checking branch master from cloudbeers/multibranch-demo ‘Jenkinsfile’ found Met criteria Checking branch pinned-lib-version from cloudbeers/multibranch-demo ‘Jenkinsfile’ found Met criteria Looking up cloudbeers/multibranch-demo for pull requests Skipping pull requests for public repositories Proposing potential-train Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) Repository type: Git Looking up cloudbeers/potential-train for branches Checking branch master from cloudbeers/potential-train ‘Jenkinsfile’ found Met criteria Checking branch origin-pr-branch from cloudbeers/potential-train ‘Jenkinsfile’ found Met criteria Checking branch no-jenkinsfile from cloudbeers/potential-train ‘Jenkinsfile’ not found Does not meet criteria Looking up cloudbeers/potential-train for pull requests Skipping pull requests for public repositories Proposing refactored-dollop Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) Repository type: Git Looking up cloudbeers/refactored-dollop for branches Checking branch master from cloudbeers/refactored-dollop ‘Jenkinsfile’ not found Does not meet criteria Looking up cloudbeers/refactored-dollop for pull requests Skipping pull requests for public repositories Proposing glowing-rotary-phone Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) Repository type: Git Looking up cloudbeers/glowing-rotary-phone for branches Checking branch master from cloudbeers/glowing-rotary-phone ‘Jenkinsfile’ not found Does not meet criteria Looking up cloudbeers/glowing-rotary-phone for pull requests Skipping pull requests for public repositories Proposing stunning-octo-tribble Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) Repository type: Git Looking up cloudbeers/stunning-octo-tribble for branches Checking branch master from cloudbeers/stunning-octo-tribble ‘Jenkinsfile’ not found Does not meet criteria Looking up cloudbeers/stunning-octo-tribble for pull requests Proposing jubilant-succotash Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) Repository type: Git Looking up cloudbeers/jubilant-succotash for branches Checking branch master from cloudbeers/jubilant-succotash ‘Jenkinsfile’ not found Does not meet criteria Looking up cloudbeers/jubilant-succotash for pull requests ERROR: Failed to create or update a subproject jubilant-succotash java.io.IOException: Communication error for url: https: //bitbucket.org/api/2.0/repositories/cloudbeers/jubilant-succotash/pullrequests?page=1&pagelen=50 at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getPullRequests(BitbucketCloudApiClient.java:183) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrievePullRequests(BitbucketSCMSource.java:335) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:325) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141) at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream.read(SocketInputStream.java:170) at java.net.SocketInputStream.read(SocketInputStream.java:141) at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) at sun.security.ssl.InputRecord.read(InputRecord.java:503) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930) at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read(BufferedInputStream.java:265) at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78) at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106) at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413) at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561) ... 16 more Proposing stunning-adventure Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) ERROR: Failed to create or update a subproject stunning-adventure java.io.IOException: Communication error for url: https: //bitbucket.org/api/2.0/repositories/cloudbeers/stunning-adventure at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRepository(BitbucketCloudApiClient.java:232) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.getRepositoryType(BitbucketSCMSource.java:284) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:320) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141) at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.net.UnknownHostException: bitbucket.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668) at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:472) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561) ... 16 more Proposing refactored-guacamole Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) ERROR: Failed to create or update a subproject refactored-guacamole java.io.IOException: Communication error for url: https: //bitbucket.org/api/2.0/repositories/cloudbeers/refactored-guacamole at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRepository(BitbucketCloudApiClient.java:232) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.getRepositoryType(BitbucketSCMSource.java:284) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:320) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141) at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.net.UnknownHostException: bitbucket.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668) at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:472) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561) ... 16 more Proposing shiny-telegram Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) ERROR: Failed to create or update a subproject shiny-telegram java.io.IOException: Communication error for url: https: //bitbucket.org/api/2.0/repositories/cloudbeers/shiny-telegram at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRepository(BitbucketCloudApiClient.java:232) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.getRepositoryType(BitbucketSCMSource.java:284) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:320) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141) at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.net.UnknownHostException: bitbucket.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668) at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:472) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561) ... 16 more Proposing rebuild-branch Connecting to https: //bitbucket.org using stephenc/****** (bitbucket.org) ERROR: Failed to create or update a subproject rebuild-branch java.io.IOException: Communication error for url: https: //bitbucket.org/api/2.0/repositories/cloudbeers/rebuild-branch at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:575) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRepository(BitbucketCloudApiClient.java:232) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.getRepositoryType(BitbucketSCMSource.java:284) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:320) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:300) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:254) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:260) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1187) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1202) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.add(BitbucketSCMNavigator.java:211) at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMNavigator.visitSources(BitbucketSCMNavigator.java:187) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:400) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:219) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:141) at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:851) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.net.UnknownHostException: bitbucket.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668) at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:472) at sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:153) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82) at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:127) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.executeMethod(BitbucketCloudApiClient.java:553) at com.cloudbees.jenkins.plugins.bitbucket.client.BitbucketCloudApiClient.getRequest(BitbucketCloudApiClient.java:561) ... 16 more [Tue Feb 14 13:55:27 GMT 2017] Finished organization scan. Scan took 1 min 15 sec Evaluating orphaned items in cloudbeers Will remove cloudbeers/shiny-telegram as it is #1 in the list Will remove cloudbeers/refactored-guacamole as it is #2 in the list Will remove cloudbeers/stunning-adventure as it is #3 in the list Finished: SUCCESS

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/jenkins/scm/api/SCMSourceObserver.java
            http://jenkins-ci.org/commit/scm-api-plugin/b4b7b6744f89965e5f33e93ecd8ad3b1b471ce9a
            Log:
            JENKINS-42000 ProjectObserver.complete should be allowed to throw IOException

            • While technically a binary incompatibility, as all call sites except for OrganizationFolder already declare throwing IOException this should be safe
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/jenkins/scm/api/SCMSourceObserver.java http://jenkins-ci.org/commit/scm-api-plugin/b4b7b6744f89965e5f33e93ecd8ad3b1b471ce9a Log: JENKINS-42000 ProjectObserver.complete should be allowed to throw IOException While technically a binary incompatibility, as all call sites except for OrganizationFolder already declare throwing IOException this should be safe

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/jenkins/scm/api/SCMSourceObserver.java
            http://jenkins-ci.org/commit/scm-api-plugin/563db931c7be02f8056d6a4584441d6808d927d3
            Log:
            Merge pull request #29 from stephenc/jenkins-42000

            JENKINS-42000 ProjectObserver.complete should be allowed to throw IOException

            Compare: https://github.com/jenkinsci/scm-api-plugin/compare/101b72fd5379...563db931c7be

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/jenkins/scm/api/SCMSourceObserver.java http://jenkins-ci.org/commit/scm-api-plugin/563db931c7be02f8056d6a4584441d6808d927d3 Log: Merge pull request #29 from stephenc/jenkins-42000 JENKINS-42000 ProjectObserver.complete should be allowed to throw IOException Compare: https://github.com/jenkinsci/scm-api-plugin/compare/101b72fd5379...563db931c7be

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/49431e0b2da6268e42a33277f67db6a1ba57c136
            Log:
            JENKINS-42000 Pick up SCM API update

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java http://jenkins-ci.org/commit/github-branch-source-plugin/49431e0b2da6268e42a33277f67db6a1ba57c136 Log: JENKINS-42000 Pick up SCM API update

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            http://jenkins-ci.org/commit/github-branch-source-plugin/8b54a60c8ab2e980324af10dc9ed1b354f47f471
            Log:
            JENKINS-42000 Pick up SCM API release and update parent

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml http://jenkins-ci.org/commit/github-branch-source-plugin/8b54a60c8ab2e980324af10dc9ed1b354f47f471 Log: JENKINS-42000 Pick up SCM API release and update parent

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/2531b82542540ee6e804d8afa3bff08b4bd0293e
            Log:
            Merge pull request #119 from stephenc/jenkins-42000

            JENKINS-42000 Pick up SCM API update

            Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/85345b1c1ce0...2531b8254254

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java http://jenkins-ci.org/commit/github-branch-source-plugin/2531b82542540ee6e804d8afa3bff08b4bd0293e Log: Merge pull request #119 from stephenc/jenkins-42000 JENKINS-42000 Pick up SCM API update Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/85345b1c1ce0...2531b8254254

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/test/java/integration/EventsTest.java
            http://jenkins-ci.org/commit/branch-api-plugin/6570519345b9b6a78aa70818b07bfc7190f4e878
            Log:
            JENKINS-42000 Add test case to verify issue

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/integration/EventsTest.java http://jenkins-ci.org/commit/branch-api-plugin/6570519345b9b6a78aa70818b07bfc7190f4e878 Log: JENKINS-42000 Add test case to verify issue

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/main/java/jenkins/branch/OrganizationFolder.java
            http://jenkins-ci.org/commit/branch-api-plugin/fef4a1490be35a31b9666006a5cec96de38d78ae
            Log:
            [FIXED JENKINS-42000] Fix the tests (and presumably the bug too)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/main/java/jenkins/branch/OrganizationFolder.java http://jenkins-ci.org/commit/branch-api-plugin/fef4a1490be35a31b9666006a5cec96de38d78ae Log: [FIXED JENKINS-42000] Fix the tests (and presumably the bug too)

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            http://jenkins-ci.org/commit/branch-api-plugin/9e6a295c8172d713a2459c9bb35002f4325a5df3
            Log:
            JENKINS-42000 Pick up SCM API release and update parent

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml http://jenkins-ci.org/commit/branch-api-plugin/9e6a295c8172d713a2459c9bb35002f4325a5df3 Log: JENKINS-42000 Pick up SCM API release and update parent

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/test/java/integration/EventsTest.java
            http://jenkins-ci.org/commit/branch-api-plugin/02054676abef582d137c4a2d6288d0a37586f6de
            Log:
            JENKINS-42000 Note that tests were added to track this issue

            • Tests should have been part of original contract though
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/test/java/integration/EventsTest.java http://jenkins-ci.org/commit/branch-api-plugin/02054676abef582d137c4a2d6288d0a37586f6de Log: JENKINS-42000 Note that tests were added to track this issue Tests should have been part of original contract though

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            pom.xml
            src/main/java/jenkins/branch/OrganizationFolder.java
            src/test/java/integration/EventsTest.java
            http://jenkins-ci.org/commit/branch-api-plugin/76313ec24e6afc2fa7a7fb408a7d5753f8be5c99
            Log:
            Merge pull request #85 from stephenc/jenkins-42000

            JENKINS-42000 Communication errors in organization scanning should not delete all everything

            Compare: https://github.com/jenkinsci/branch-api-plugin/compare/0178b37da659...76313ec24e6a

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: pom.xml src/main/java/jenkins/branch/OrganizationFolder.java src/test/java/integration/EventsTest.java http://jenkins-ci.org/commit/branch-api-plugin/76313ec24e6afc2fa7a7fb408a7d5753f8be5c99 Log: Merge pull request #85 from stephenc/jenkins-42000 JENKINS-42000 Communication errors in organization scanning should not delete all everything Compare: https://github.com/jenkinsci/branch-api-plugin/compare/0178b37da659...76313ec24e6a

            Branch API 2.0.6 has the fix. (Well I claim it does)

            stephenconnolly Stephen Connolly added a comment - Branch API 2.0.6 has the fix. (Well I claim it does)
            fortuna Ben Fortuna added a comment - - edited

            Awesome, thanks so much for the quick response. I'll confirm the fix once 2.0.6 is released.

            stephenconnolly a slight issue with installing 2.0.6 - it appears to have a dependency on scm-api 2.0.4, but the latest release is 2.0.3.

            fortuna Ben Fortuna added a comment - - edited Awesome, thanks so much for the quick response. I'll confirm the fix once 2.0.6 is released. stephenconnolly a slight issue with installing 2.0.6 - it appears to have a dependency on scm-api 2.0.4, but the latest release is 2.0.3.

            fortuna yes and scm-api 2.0.4 was released before branch-api 2.0.6... just that the OSS update center can have issues presenting a consistent set of releases when the releases were made in less than 4-8h of the update center being regenerated (and also the update center does not present a self-consistent set of plugins, e.g. JENKINS-23757 is one aspect. Another aspect is that if the update center does not have e.g. scm-api 2.0.4 then it should hold back branch-api 2.0.6 until it does have it - a feature of the CloudBees update center back-end code)

            In any case the releases should all be available now

            stephenconnolly Stephen Connolly added a comment - fortuna yes and scm-api 2.0.4 was released before branch-api 2.0.6... just that the OSS update center can have issues presenting a consistent set of releases when the releases were made in less than 4-8h of the update center being regenerated (and also the update center does not present a self-consistent set of plugins, e.g. JENKINS-23757 is one aspect. Another aspect is that if the update center does not have e.g. scm-api 2.0.4 then it should hold back branch-api 2.0.6 until it does have it - a feature of the CloudBees update center back-end code) In any case the releases should all be available now

            People

              stephenconnolly Stephen Connolly
              fortuna Ben Fortuna
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: