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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With