Yeah, I realized that this is how I had it configured, but when it stopped
working I thought I missed a setting in my Jenkins application.

FWIW ... I found the problem.  My Archiva Maven repository server is
running in a VM in our ESX cluster and for some reason when the VM reboots,
the clock gets reset back to September, 2011 and then any REMOTE
authentication attempts don't work.  It accepts the credentials, but
doesn't log me in.  It works on the Archiva VM (localhost) for some reason
(probably because I'm logging in using the same date/time that Archiva is
using).

>From Jenkins, this manifested itself as an "Access Denied" type error.
Very weird.

Thanks for the response though.
On Tue, Feb 14, 2012 at 5:54 PM, Sebastian Otaegui <[email protected]> wrote:

> Why not use a settings.xml in the ${HOME}/.m2 of the user that runs
> jenkins and use the native 'mvn clean deploy' instead of 'mvn clean
> package' (or whatever you are doing :) ?
>
> Have you tried that? I am doing it on my jenkins installation and works as
> a charm.
>
> Of course, as long as you are doing an m2 build :)
>
> Regards
>
> On Tue, Feb 14, 2012 at 5:54 PM, Jeff <[email protected]> wrote:
>
>> Is it Friday yet?  (ugh)
>>
>> I had been running Jenkins 1.450 and upgraded today to 1.451 and ended up
>> just blowing away my configurations and (two) jobs and I'm almost back up.
>>
>> The last bit I'm having a problem with is publishing my maven build
>> artifacts to my repository server.  I get a ReasonPhrase:Forbidden message
>> and I'm quite sure it's because I've not given it the credentials.
>>
>> For the life of me, I can't remember or find where to set the
>> credentials!!
>>
>> In my job configuration at the bottom in the "Post-build Actions" I've
>> checked the "Deploy artifacts to Maven repository" option and then entered
>> the "Repository URL" and "Repository ID".
>>
>> I would swear there was a field somewhere add username and password
>> information for the repository.  I can't find it in the global Jenkins
>> config either.
>>
>> Can anyone save me from myself and point me to where I set it the
>> repository credentials?
>>
>> --
>> Jeff Vincent
>> [email protected]
>> See my LinkedIn profile at:
>> http://www.linkedin.com/in/rjeffreyvincent
>> I ♥ DropBox <http://db.tt/9O6LfBX> !!
>>
>>
>
>
> --
> Those who do not understand Unix are condemned to reinvent it, poorly.
> Any sufficiently recent Microsoft OS contains an ad hoc,
> informally-specified, bug-ridden, slow implementation of half of Unix.
>



-- 
Jeff Vincent
[email protected]
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox <http://db.tt/9O6LfBX> !!

Reply via email to