•  
      request #30747 Allow to customize connection time out on Project /multibranch pipeline scan
    Infos
    #30747
    Pierre MARGUERITE (pierre.marguerite)
    2023-02-03 18:28
    2023-02-03 18:28
    32352
    Details
    Allow to customize connection time out on Project /multibranch pipeline scan

    With the Tuleap plugin , I use an organization folder job to scan a project and create automatically the sub jobs per git repositories and branch jobs.

    I get regular connection timeout while scanning the the internal Tuleap instance:

    java.net.SocketTimeoutException: connect timed out at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412) at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255) at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.base/java.net.Socket.connect(Socket.java:609) at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128) at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295) at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207) at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226) at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154) at io.jenkins.plugins.tuleap_api.client.internals.TuleapApiClient.getPullRequests(TuleapApiClient.java:561) Caused: java.lang.RuntimeException: Error while contacting Tuleap server at io.jenkins.plugins.tuleap_api.client.internals.TuleapApiClient.getPullRequests(TuleapApiClient.java:580) at org.jenkinsci.plugins.tuleap_git_branch_source.TuleapSCMSource.retrieve(TuleapSCMSource.java:169) at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:327) at jenkins.branch.MultiBranchProjectFactory$BySCMSourceCriteria.recognizes(MultiBranchProjectFactory.java:261) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.recognizes(OrganizationFolder.java:1358) at jenkins.branch.OrganizationFolder$SCMSourceObserverImpl$1.complete(OrganizationFolder.java:1373) at jenkins.scm.api.trait.SCMNavigatorRequest.process(SCMNavigatorRequest.java:254) at jenkins.scm.api.trait.SCMNavigatorRequest.process(SCMNavigatorRequest.java:204) at org.jenkinsci.plugins.tuleap_git_branch_source.TuleapSCMNavigator.visitSources(TuleapSCMNavigator.java:120) at jenkins.branch.OrganizationFolder.computeChildren(OrganizationFolder.java:535) at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:278) at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:166) at jenkins.branch.OrganizationFolder$OrganizationScan.run(OrganizationFolder.java:917) at hudson.model.ResourceController.execute(ResourceController.java:107) at hudson.model.Executor.run(Executor.java:449)

    When it happens the job for the failing repository get desactivated.

    I could be good to be able to set a custom value for the connection time , so it could be increased according to anyone needs

    Jenkins Branch Source plugin
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    New
    Empty
    Attachments
    Empty
    References
    References list is empty