jenkins, archiva repo and credentials?

16 views
Skip to first unread message

Kristian Rink

unread,
Dec 12, 2014, 7:56:12 AM12/12/14
to jenkins...@googlegroups.com
Folks;

we use Jenkins all along with a local Apache Archiva maven repository to build maven projects. There's a dedicated user for Jenkins to access the repository and download (and deploy) artifacts. The user has all the required permissions, but I fail to set up maven in Jenkins to work with repo or credentials. Tried to go the usual way (placing a settings.xml in the Jenkins users $HOME/.m2 , even tried the global maven settings.xml). Building with maven from the terminal, things work well, but Jenkins builds fail pretty early because maven gets a 401 trying to download the artifacts off the repository.

So to ask: Is there anything special to think of when using Jenkins with a maven repo that requires authentication? Where to put credentials to make Jenkins find these?
TIA and all the best,
Kristian
Reply all
Reply to author
Forward
0 new messages