bamboo-artifactory-plugin icon indicating copy to clipboard operation
bamboo-artifactory-plugin copied to clipboard

Artifactory Generic Deploy task is failing when Bamboo is running an SSL proxy

Open asoftwareguy opened this issue 9 years ago • 1 comments

Opened JIRA ticket https://www.jfrog.com/jira/browse/BAP-334

We are running an Apache server with SSL enabled that connects to an HTTP Bamboo server. When using the Artifactory Gradle task, everything works fine. When using the Artifactory Generic Task, we get the following error: Starting task 'Publish to Artifactory' of type 'org.jfrog.bamboo.bamboo-artifactory-plugin:artifactoryGenericTask' 14-Jan-2016 10:26:28 Bamboo Artifactory Plugin version: 1.9.2 14-Jan-2016 10:26:28 For pattern: build/libs/iph-1.28.jar 1 artifacts were found 14-Jan-2016 10:26:28 Exception occurred while executing task 14-Jan-2016 10:26:28 java.lang.RuntimeException: Failed while invoking URL https://bamboo.texas.local/plugins/servlet/artifactoryAdminConfigServlet?planKey=TWAG-OTCIPH-PT to get Bamboo variables. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

asoftwareguy avatar Jan 14 '16 16:01 asoftwareguy

I think we need to be able to override the baseUrl here: https://github.com/JFrogDev/bamboo-artifactory-plugin/blob/master/src/main/java/org/jfrog/bamboo/configuration/ConfigurationHelper.java line 77 so that we can specify the HTTP host:port we know Bamboo is listening on behind the proxy.

asoftwareguy avatar Jan 14 '16 16:01 asoftwareguy