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

Allow configurable readTimeout for jira-steps-plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We have a particularly slow JIRA instance which often takes more than 10 seconds to respond to certain queries (such as reading the transitions metadata for an issue).

      Can i propose that the readTimeout on the http client for the jira-steps-plugin be configurable, in a similar way that the connection timeout currently is:

      Github link to code

       

      OkHttpClient httpClient = new OkHttpClient.Builder()
        .connectTimeout(jiraSite.getTimeout(), TimeUnit.MILLISECONDS)
        .readTimeout(10000, TimeUnit.MILLISECONDS).connectionPool(CONNECTION_POOL)
        .retryOnConnectionFailure(true).addInterceptor(new SigningInterceptor(jiraSite)).build();
      

       

       

        Attachments

          Issue Links

            Activity

            chriswhite199 Chris White created issue -
            Show
            chriswhite199 Chris White added a comment - PR:  https://github.com/jenkinsci/jira-steps-plugin/pull/63
            chriswhite199 Chris White made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            chriswhite199 Chris White made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            drogers Dave Rogers made changes -
            Link This issue is blocked by JENKINS-49996 [ JENKINS-49996 ]
            Hide
            nrayapati Naresh Rayapati added a comment -

            Have open up a new pull request with comments being addressed: https://github.com/jenkinsci/jira-steps-plugin/pull/67

            Show
            nrayapati Naresh Rayapati added a comment - Have open up a new pull request with comments being addressed:  https://github.com/jenkinsci/jira-steps-plugin/pull/67
            Hide
            nrayapati Naresh Rayapati added a comment -

            Merged above pull request, will release artifact soon once after a bit of local testing. Thanks a bunch for your contribution Chris White. Resolving this JIRA for now. 

            Show
            nrayapati Naresh Rayapati added a comment - Merged above pull request, will release artifact soon once after a bit of local testing. Thanks a bunch for your contribution Chris White . Resolving this JIRA for now. 
            nrayapati Naresh Rayapati made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            Hide
            nrayapati Naresh Rayapati added a comment -

            Released with 1.4.0, the plugin should be available soon for installation on update center. 

            Show
            nrayapati Naresh Rayapati added a comment - Released with 1.4.0, the plugin should be available soon for installation on update center. 
            nrayapati Naresh Rayapati made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                nrayapati Naresh Rayapati
                Reporter:
                chriswhite199 Chris White
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: