-
Notifications
You must be signed in to change notification settings - Fork 164
Proxy settings ignored when "Deploying build info" #628
Description
Describe the bug
Gradle project using artifactory plugin to publish to Artifactory SaaS. Gradle is configured to use proxy via environment variable GRADLE_OPTS="-Dhttps.proxyHost=egress-proxy -Dhttps.proxyPort=3128" additionally artifactory plugin is configure to use proxy as well
artifactory {
clientConfig.proxy.host='egress-proxy'
clientConfig.proxy.port=3128
}Dependency resolution works correctly and uses proxy. When running gradle artifactoryPublish I can see that proxy settings are picked up when uploading artifacts
[DEBUG] [org.jfrog.gradle.plugin.artifactory.task.DeployTask] Uploading artifacts to Artifactory at 'https://###.jfrog.io/artifactory'
[DEBUG] [org.jfrog.gradle.plugin.artifactory.task.DeployTask] Found proxy host 'egress-proxy'
[DEBUG] [org.jfrog.gradle.plugin.artifactory.task.DeployTask] No proxy user name and password found, using anonymous proxy
...
[DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection request: [route: {tls}->http://egress-proxy:3128->https://###.jfrog.io:443][total available: 0; route allocated: 0 of 10; total allocated: 0 of 10]
but then when deploying build info it's ignored
[LIFECYCLE] [org.jfrog.gradle.plugin.artifactory.task.DeployTask] Deploying build info...
[DEBUG] [org.jfrog.gradle.plugin.artifactory.task.DeployTask] Base URL: /api/build
[DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: default
[DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Connection request: [route: {s}->https://###.jfrog.io:443][total available: 0; route allocated: 0 of 10; total allocated: 0 of 10]
To Reproduce
Configure build environment that requires use of forwarding proxy to access Artifactory for publishing artifacts. Configure gradle project that publishes any artifact and build info. Run artifactoryPublish
Expected behavior
Plugin should use the same proxy setting for publishing artifacts and build info
Versions
- Gradle Artifactory plugin version: 4.27.1
- Operating system: macOS Catalina
- Artifactory Version: Artifactory SaaS