Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Building Node.js module with private git repo dependencies

I have a build set up for a Node.js module that has a step which executes 'npm install'. The package.json file, which specifies the module's dependencies includes at least one private git repo:

+    "module-name": "git+ssh://git@github.mycompany.com:OurOrgName/module-name.git#v0.0.1",

This is a standard practice in Node.js. You can see the docs for doing so here: https://npmjs.org/doc/json.html (search for "git+ssh").

We're using a deploy key to clone our repo from github initially, which works fine. The next step is our npm install step, which itself attempts to git clone the private repos similar to what's shown above. These fail with an authentication error. Since deploy keys are 1:1 between Bamboo and a repo, it doesn't seem to make sense to use them in this scenario.

How should I be setting up my Node.js project so that it can run npm install and git clone any private repos that I have specified in its package.json file?

Thanks,

Matt

2 answers

Hi Matt!

I'm currently having the exact same issue. Did you find an answer on this?

Cheers
Michael 

Same here.. how did you solve this?

More than 4 years without an answer, so I'm not holding my breath but, does anyone have the solution for this?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center - Early Access Program

G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...

967 views 0 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you