Open cb645j opened 4 months ago
Im using the JFrogGradle@1 task in my azure devops pipeline to try to publish artifacts to my jfrog instance. I have a serviceconnection set up to artifactory within azure. I receive the following errors
[pool-1-thread-1] Deploying artifact: https://myartifactoryurl.com/artifactory/mvn-group/otel-java/something-1.8.15-SNAPSHOT.jar [pool-1-thread-3] Deploying artifact: https://myartifactoryurl.com/artifactory/mvn-group/otel-java/something-1.8.15-SNAPSHOT.jar [pool-1-thread-2] Deploying artifact: https://myartifactoryurl.com/artifactory/mvn-group/otel-java/something-1.8.15-SNAPSHOT.jar Error occurred for request GET /artifactory/api/system/version HTTP/1.1: artifact.it.att.com. Error occurred for request GET /artifactory/api/system/version HTTP/1.1: artifact.it.att.com. Error occurred for request GET /artifactory/api/system/version HTTP/1.1: myartifactoryurl.com: No address associated with hostname. Attempting retry #1 Attempting retry #1 ......
java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.net.UnknownHostException: myartifactoryurl.com ........ Task :artifactoryDeploy FAILED
I am behind a proxy however i have the proxy set. Below is my task
task: JFrogToolsInstaller@1 displayName: 'Install JFrog Tools Extension' inputs: artifactoryConnection: 'myserviceconnection' cliInstallationRepo: 'repo' installExtractors: true extractorsInstallationRepo: 'mvn-group'
task: JFrogGradle@1 displayName: 'Push to JFrog Artifactory' inputs: gradleBuildFile: 'build.gradle.kts' tasks: 'artifactoryPublish' artifactoryResolverService: 'myserviceconnection' artifactoryDeployerService: 'myserviceconnection' targetRepo: 'mvn-group' sourceRepo: 'mvn-group' options: "-Dhttp.proxyHost=proxy..local -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy..local -Dhttps.proxyPort=3128" collectBuildInfo: false usesPlugin: false useWrapper: true
Note, im able to upload successfully artifacts/files when i use the JFrogGenericArtifacts@1, without even having a proxy configured.
Fails to push artifacts
Must hava access to my env or be behind a proxy
the artifacts get deployed to jfrog artifactory
azure-jfrog-devops
2.52.9
azure devops pipeline agent
No response
Describe the bug
Im using the JFrogGradle@1 task in my azure devops pipeline to try to publish artifacts to my jfrog instance. I have a serviceconnection set up to artifactory within azure. I receive the following errors
[pool-1-thread-1] Deploying artifact: https://myartifactoryurl.com/artifactory/mvn-group/otel-java/something-1.8.15-SNAPSHOT.jar [pool-1-thread-3] Deploying artifact: https://myartifactoryurl.com/artifactory/mvn-group/otel-java/something-1.8.15-SNAPSHOT.jar [pool-1-thread-2] Deploying artifact: https://myartifactoryurl.com/artifactory/mvn-group/otel-java/something-1.8.15-SNAPSHOT.jar Error occurred for request GET /artifactory/api/system/version HTTP/1.1: artifact.it.att.com. Error occurred for request GET /artifactory/api/system/version HTTP/1.1: artifact.it.att.com. Error occurred for request GET /artifactory/api/system/version HTTP/1.1: myartifactoryurl.com: No address associated with hostname. Attempting retry #1 Attempting retry #1 ......
I am behind a proxy however i have the proxy set. Below is my task
task: JFrogToolsInstaller@1 displayName: 'Install JFrog Tools Extension' inputs: artifactoryConnection: 'myserviceconnection' cliInstallationRepo: 'repo' installExtractors: true extractorsInstallationRepo: 'mvn-group'
task: JFrogGradle@1 displayName: 'Push to JFrog Artifactory' inputs: gradleBuildFile: 'build.gradle.kts' tasks: 'artifactoryPublish' artifactoryResolverService: 'myserviceconnection' artifactoryDeployerService: 'myserviceconnection' targetRepo: 'mvn-group' sourceRepo: 'mvn-group' options: "-Dhttp.proxyHost=proxy..local -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy..local -Dhttps.proxyPort=3128" collectBuildInfo: false usesPlugin: false useWrapper: true
Note, im able to upload successfully artifacts/files when i use the JFrogGenericArtifacts@1, without even having a proxy configured.
Current behavior
Fails to push artifacts
Reproduction steps
Must hava access to my env or be behind a proxy
Expected behavior
the artifacts get deployed to jfrog artifactory
Azure DevOps extension name and version
azure-jfrog-devops
JFrog CLI version
2.52.9
Operating system type and version
azure devops pipeline agent
JFrog Artifactory version (if relevant)
No response
JFrog Xray version (if relevant)
No response
JFrog Distribution version (if relevant)
No response