I have a Jenkins job to build my JS application.
In my package.json I have a dependency that looks like this:
"devDependencies": {
"my_private_package": "git+https://my-server/my-repo.git#1.0.0"
}
I use the Jenkins Git Plugin along with the Credentials Plugin to clone the repo, then a shell script to run npm install.
When Jenkins runs npm install, npm errors out with npm ERR! fatal: Authentication failed
Due to our self hosted git server and bureaucracy I'm unable to do anything with adding an oAuth token to the git url.
Is there a way for me to set my git credentials so that npm can install from my password protected git repo?