> On Thursday, October 27, 2016 at 9:30:43 PM UTC+2, Justin Young wrote:
>
> Christian and Pietro,
>
>> On Thursday, October 27, 2016 at 7:34:51 AM UTC-7, Christian Biamont wrote:
>>
>> Hello,
>>
>> I'm also having the same problem.
>
>
> The Jenkins plugin should support authentication credentials when using
> the Test Connection. More information about your particular setup would
> be useful to understand the problem. Note that only Hosted Release Maven2
> repositories will be shown in the list.
>
The problem for our organization is that we are protecting our Maven repo with
Shibboleth SSO. If I try to curl
https://mavenrepo.example.com/service/local/repositories, Shibboleth will want
to redirect us to authenticate. We tried to disable Shibboleth on
/service/local/repositories with an Apache LocationMatch, and the curl would
work. The Nexus Plugin in Jenkins did work, in the context that it got a code
200, but since it did not authenticate, the repo was empty. We tried
experimenting with different privileges and roles and were able to make the
plugin auth when we added the Nexus Anonymous Role on our Nexus user that we
use to auth. Unfortunately, we need to have the Shibboleth auth enabled on
/service/local/repositories in the Apache conf, otherwise we are not getting
authenticated in the web gui. So I guess it's a catch 22.
I don't know any way to get around this. We have also tried experimenting with
other ways to deploy artifacts to Nexus. It's possible for us to put files on
"/content/repositories/examplerepository/" without interfering with the web
gui, so I think this is the right way to go for us. Or do you have any
experience or ideas about this? Thank you.
Christian