Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bitbucket Pipelines access other node repository

I have enabled Bitbucket Pipelines in one of my node.js repositories to have it run the build on every commit. My repository depends on another node.js repository. For development I've linked the one to the other using npm link.

I've tried a git clone of that repository that is specified in the bitbucket-pipelines.yml file, but the build gets stuck on that command. I guess it's because git is asking for authentication at that point.

Is there a way to allow the container to access other repositories in the same team? Or is there a better way altogether on how to solve this? I'd also be fine with switching to another CI tool if Bitbucket Pipelines aren't capable of this – the only requirement is that it's free for teams < 5 people.

Btw. I'd like to avoid paying for npm private packages if possible.

Thanks!

like image 488
amann Avatar asked Oct 17 '22 20:10

amann


1 Answers

You can organize access by ssh key for another repo like described in official docs https://confluence.atlassian.com/bitbucket/access-remote-hosts-via-ssh-847452940.html

like image 189
Oleksandr Diudiun Avatar answered Oct 29 '22 23:10

Oleksandr Diudiun