Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy settings ignored when "Deploying build info" #628

Closed
vitali-kr opened this issue Mar 16, 2022 · 0 comments · Fixed by #629
Closed

Proxy settings ignored when "Deploying build info" #628

vitali-kr opened this issue Mar 16, 2022 · 0 comments · Fixed by #629
Labels
gradle bug Create a report to help us improve

Comments

@vitali-kr
Copy link
Contributor

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
@vitali-kr vitali-kr added the gradle bug Create a report to help us improve label Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gradle bug Create a report to help us improve
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant