You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am working from my company's bitbucket account so I am trying to download the repo on which the required jar files are stored (I want to do this via ssh keys). I am working on creating the yaml file for bitbucket pipelines (for the main project repo) and I could not find a way to incorporate these jar files into my main repo as well as install dependencies - java 1.8 and sbt 1.6.2. I've seen a way to download the repo using a shell script and use maven... but is that necessary as there is no maven needed for this project? Please let me know which approach is best supported by Bitbucket to download jar files from external repos into bitbucket pipelines.
Welcome to the Bitbucket Cloud Community! :)
I believe the easiest and best way to execute files from another repository using SSH is to clone the external repository in pipelines and then execute the files once it has been cloned.
To do this, you will need to follow these steps to give the main repository read access to the target repository:
- git clone firstname.lastname@example.org:workspaceID/reposlug.git
- cd ./reposlug
- java -jar script.jar
There is an article here that explains this in-depth with screenshots:
Hope this helps.
- Ben (Bitbucket Cloud Support)