Integrating Sonar with a Local Jira Server

I’m encountering issues with the Sonar Jira plugin failing to connect to our internal Jira server. Within our organization, any external connections require a proxy setup. Our Jira is hosted locally, for instance at http://myjira. In order to access it, I have to include the myjira hostname in the bypass list of my browser’s proxy settings. Is there a way to configure Sonar to replicate this browser behavior? Thank you.

You can configure the proxy settings directly within your SonarQube server by editing the sonar.properties file located in the SonarQube configuration directory. In this file, look for the proxy settings section and specify your organization’s proxy details. Make sure to use the http.nonProxyHosts parameter to list your local JIRA server (e.g., "myjira") so that it bypasses the proxy when establishing connection. After making these changes, restart the SonarQube server to apply the new configuration. This should help SonarQube connect directly to your local JIRA server without going through the proxy.

If configuring the SonarQube server still doesn’t fix the issue, you might want to look into network-level configurations such as configuring your system or server host file to resolve the Jira hostname directly to its IP address. Sometimes, DNS resolution in your environment could affect how connections are being routed, especially when proxies are involved. Also, ensure that the myjira address is resolvable from the machine where SonarQube is hosted. This way, even if network conditions fluctuate, connections to Jira can still go through directly without proxy interference.