bamboo-artifactory-plugin
bamboo-artifactory-plugin copied to clipboard
Artifactory Generic Deploy task is failing when Bamboo is running an SSL proxy
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
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.