I am trying to checkout my project repository then clone another repository in to the same job. This is because we have created a framework that compiles html via gulp/handlebars using project related assets and content in json files which are contained in a separate repo.
Here is the relevant part of the config.yml file.
version: 2 jobs: build: docker: - image: circleci/node:8.12.0-browsers-legacy steps: - checkout - add_ssh_keys: fingerprints: - "b1:79:b2:de:ce:1d:59:f0:83:6b:a4:b1:03:8c:7d:e6" - "ec:66:74:bb:b3:25:fa:82:57:58:58:94:01:eb:1b:b2" - run: name: clone second repo command: sudo git clone email@example.com:<OUR-COMPANY-NAME/OUR-REPO.git /home/circleci/project/OUR-REPO no_output_timeout: 1200
I gather I need to make a machine user. The problem is that we are using Bitbucket and all of the machine user related instructions seem to be for Github. Does anyone know how I can access two separate Bitbucket repositiories in the same job? I have so far had no luck creating a machine user in Bitbucket. I have added various SSH keys created by getting the details from Inspect as mentioned in another ticket. None have worked. I have also created a new user in Bitbucket and tried adding SSH details to that but am unable to add projects to that for some reason.
The error I get back from this gives me a fingerprint for an SSH key I haven’t defined and as far as I can gather is the default known host RSA for Bitbucket on my local machine. So the add__ssh_keys instruction is not being respected.
Any help would be massively appreciated. Thanks!