jenkinsci/git-changelog-plugin

REST client (used for Jira titles integrations, f.e.) does not respect proxy settings in Jenkins

Opened this issue · 1 comments

  • Plugin version used: 2.10
  • Jenkins version used: 2.141
  • Your configuration:
    • Jenkins behind the proxy (proxy configured in Jenkins / Manage Plugins / Advanced / HTTP Proxy Configuration)

I am using "Use Jira" section in a configuration. I can see in general Jenkins log that RestClient is trying to connect to remote server and is getting "Connection Reset", it is common when Jenkins is sitting behind proxy and is not using configured settings from Jenkins.

Output from log:
Sep 17, 2018 7:52:55 AM INFO se.bjurr.gitchangelog.internal.integrations.rest.RestClient doGet GET: https://somedomainname.atlassian.net/rest/api/2/issue/TASK-2018?fields=parent,summary,issuetype,labels,description Sep 17, 2018 7:52:55 AM SEVERE se.bjurr.gitchangelog.internal.integrations.rest.RestClient doGet Got: null java.net.SocketException: Connection reset

Tested it on Jenkins instance on open network (no proxy), -- works like a charm (titles fetched and filled into change log).