http.nonProxyHosts has no effect, webhook delivery failing (CE 7.9.1 build 27448)

Hello Antoine,

Thanks for your reply- yes you have accurately described scenarios 1 and 2.

Scenarios 3 and 4 are essentially what you are describing, let me see if I can clarify:

Scenario 3 is where I have specified the proxy host/port (same as scenario 2) and nonProxyHosts in the sonar.properties file. In sonar.properties, I have put the following-

http.proxyHost=<hostname of our proxy, FQDN>
http.proxyPort=<port number>
http.nonProxyHosts="*.<our domain>|localhost|127.*|[::1]"

Scenario 4 uses only the JVM options, providing -Dhttp.proxyHost -Dhttp.proxyPort -Dhttp.nonProxyHosts, with the values above.

Frustratingly, neither of those worked either (as I reported in my original post).

I have instead, begun doing some time-intensive trial-and-error, arriving at this solution:

http.nonProxyHosts="<FQDN of Jenkins instance>|localhost|127.*|[::1]|*.<our domain>"

I am unsure why this was necessary in order for this to work- it seems this is in three blocks: the first must contain the FQDN of the Jenkins instance. The second block needs the "localhost|127.*|[::1]" loopbacks. The last block is the wildcard domain root. Removing any of those three “blocks” seems to result in the nonProxyHosts from not working.

My issue, is resolved, however, this does not align with my understanding of http.nonProxyHosts. With no further detail in logs it’s not possible to really see what’s happening- this doesn’t result in a stack trace or other visible failure, and if anything that’s something I’d like to see as a feature request.

Thank you.