Publishing Artifactory Plugin DOES NOT honor http proxy settings

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Publishing Artifactory Plugin DOES NOT honor http proxy settings

greenaj
I am using Github source code and OWASP Zap to figure out how some of these artifactory plugins work. If you set systemProp.http.proxyHost ... in the gradle.properties file, the regular Gradle ivy-publishing uses the proxy, but if you use the Publishing Artifactory plugin, the proxy settings are not honored.

Where do you set the proxy settings for this. Maybe I can find out by using grep in the source code, but I can't find this documented.

Aris Green
Reply | Threaded
Open this post in threaded view
|

Re: Publishing Artifactory Plugin DOES NOT honor http proxy settings

greenaj
I respond to my own post because I have some information now, after cloning repository from https://github.com/JFrogDev/build-info.git, I am able to to use Cygwin's grep utility to supplement the sparse documentation at http://www.jfrog.com/confluence/display/RTF/Gradle+1.6+Publishing+Artifactory+Plugin.

Here is a way that works after digging through the source:

artifactory {
   
    clientConfig.proxy.host = 'localhost'
    clientConfig.proxy.port = 8090

}

This is localhost:8090, I was using OWASP Zed Attack Proxy to get a better understanding of how this plugins uses GET, POST, PUT, etc to get and receive buildinfo.

Now, I am not sure if this plugin yet supports HTTPS, there is the following in ArtifactoryClientConfiguration.java:

// TODO: Support proxy type SSL or not
Enjoy
Aris Green