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

jfrogGradle unable to publish artifacts #483

Open
cb645j opened this issue Feb 23, 2024 · 0 comments
Open

jfrogGradle unable to publish artifacts #483

cb645j opened this issue Feb 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@cb645j
Copy link

cb645j commented Feb 23, 2024

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
......

  • What went wrong:
    Execution failed for task ':artifactoryDeploy'.

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.

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

@cb645j cb645j added the bug Something isn't working label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant