Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nexus credentials in Jenkins

I have a Jenkins job which is supposed to build a Jar and add it to Nexus. I have configured post build action to deploy maven artifact to nexus repository.

The problem is, the nexus is expecting username and password. How would i set these in the Jenkins? I do not have access to jenkins settings.xml file. I need to pass username and password in the Jenkins job itself.

like image 893
Adiant Avatar asked Sep 08 '15 15:09

Adiant


1 Answers

Take a look at the Config File Provider Plugin. It allows you to provide your own settings.xml for jenkins to use where you can configure all the credentials that you might need.

like image 99
Markus Avatar answered Oct 05 '22 11:10

Markus