Bernard
Bernard

Reputation: 1015

Proxy Setting in Teamcity

We have teamcity 10 running as a service behind a corporate network and we need to configure it to connect to a proxy so we can access an external issue tracker (Jira).

When we attempt a test connection we get

Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I am assuming that is because the proxy isn't setup properly? Other links seem to suggest its a certificate issue for Jira Cloud? Alternative theory based on this https://confluence.jetbrains.com/display/TCD7/JIRA and https://developer.atlassian.com/jiradev/latest-updates/soap-and-xml-rpc-api-deprecation-notice suggest that xml-rpc is required for the integration however that is deprecated?

We have added

TEAMCITY_SERVER_OPTS in environment settings with the following -Dproxyset=true;-Dhttp.proxyHost=xxx;-Dhttp.proxyPort=xxx

Is there anything else? Or a simpler way?

Thanks for reading

Upvotes: 0

Views: 1116

Answers (1)

Yaegor
Yaegor

Reputation: 1832

Most probably the HTTPS certificate of your Jira is self-signed, so you will need to configure TeamCity server JVM by adding the root certificate of your organization into JVM keystore as trusted.

Upvotes: 1

Related Questions