Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Access not possible with Artifact Resolver then security is on #18

Open
hcguersoy opened this issue Oct 18, 2013 · 3 comments
Open

Access not possible with Artifact Resolver then security is on #18

hcguersoy opened this issue Oct 18, 2013 · 3 comments

Comments

@hcguersoy
Copy link

Hi,

using this plugin in a pipeline it is not possible to access the repository with e.g. the Artifact Resolver (aka Repository connector) Plugin then the global security (matrix project based) is enabled.
Got always an 'access denied' even then I provide a valid jenkins user and his password.
Don't find a way to configure the access to the repo.
Using Jenkins 1.535 and plugin version 1.0

@Favorlock
Copy link

I'm having the same issue with defining the server in my settings.xml and running mvn dependency:resolve.

@kshakir
Copy link

kshakir commented Apr 3, 2015

Although this plugin provides a repository, the basic setup only works under anonymous, unauthenticated Jenkins. Jenkins authentication is incompatible with any software using the ivy library for artifact resolution. For our setup, this means sbt.

Jenkins only supports forced authentication. During anonymous access, instead of a HTTP 401, Jenkins returns a HTTP 403 meaning:

Authorization will not help and the request SHOULD NOT be repeated.

Programs like wget do allow forced authentication, enabling basic examples to work when authenticating to Jenkins. However, neither the ivy library, nor the underlying HttpUrlConnection, currently expose options for forced authentication.

Perhaps running a separate authenticated reverse proxy in front of Jenkins would work, if the reverse proxy returned a proper HTTP 401 when the request is unauthorized but not forbidden.

@jakub-bochenski
Copy link

You might find this open issue useful https://issues.apache.org/jira/browse/WAGON-405
It describes how to enable preemptive authentication -- the documented way doesn't work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants