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

Bitbucket Pull Request Builder plugin does not work behind a proxy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 1.590, bitbcuket-pullrequest-builder-plugin 1.4.1

      Bitbucket Pull Request Builder plugin can not connect to bitbucket.org if the Jenkins is behind a proxy.
      I attached a patch that solves this bug. This solution uses the http client SystemDefaultHttpClient in the org.apache.httpcomponents:httpclient instead of using the HttpClient in commons-http library. This class use the system properties to configure a proxy as described in https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html.
      Another solution is the get the Jenkins' proxy configuration: jenkins.model.Jenkins.getInstance().proxy

            nishio_dens Shinsuke Nishio
            anloci Angel López Cima
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: