jenkins gets 403 when fetching artifact from artifactory

645 views
Skip to first unread message

gab...@gmail.com

unread,
Sep 6, 2016, 9:51:12 AM9/6/16
to Jenkins Users
Hello,

jenkins version: 2.1
artifactory: 4.4.0
repository connector plugin: 1.1.3

I created a freestyle job in Jenkins and would like to download some artifacts from Nexus.
We have both Nexus and Artifactory as repositories, both of them configured in Jenkins.
Some maven builds put the artifacts (rpms) into Nexus. Artifactory is used during build time to store jars by some ANT builds/jobs.

So I want to download some rpms from Nexus and I get an error message.

failed collecting dependency info for [Artifact com.xxx]
org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for com.xxx
.
.
.
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact com.xxx from/to artifactory
...
Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: https://xxxx.pom


It means that the plugin checks Artifactory for the dependency's pom file and though it's not there (because we use Nexus for maven builds, not Artifactory), the request fails with 403 which means access denied (instead of getting 404 and jumping to Nexus to get the pom file).

Authentication is set in the Artifact Resolver plugin's settings section under Jenkins / manage jenkins / configure system path.

Any hints?


The best thing is that this worked a couple of days ago but we had to restart Jenkins and it stopped working...maybe some cache-ing issue?

Thanks!



Reply all
Reply to author
Forward
0 new messages