NPM install fails with Jenkinsfile if git+ssh protocol is used

5 views
Skip to first unread message

maxmil7

unread,
Jul 18, 2017, 1:44:03 AM7/18/17
to Jenkins Users
Hello,

I have a NodeJS application and I download some modules directly from our enteripise github using the git+ssh protocol.
For eg: "simplemodule": "git+ssh://g...@github.com/org/simplemodule.git"

I have added the private key in Jenkins and the app builds without any issues.

However, when a build is triggered in Blueocean using Jenkinsfile, it fails during npm install with 'Permission denied' error.

I have supplied the private key to Blueocean as well during setup but it doesn't seem to be passing it during the install.

Is anyone aware of this issue?

Thanks.





Reply all
Reply to author
Forward
0 new messages