I followed the latest tutorial to setup SSH keys for my submodule. I have created the public/private keys on repository A. Repo A includes a submodule to repository B. I used the "Access Keys" on repository B and added the public key.
My pipeline is fairly simple.
image: gcc:6.1
pipelines: default:
- step:
script:
- git remote set-url origin https://myusername@bitbucket.org/myusername/repo_b.git
- git submodule update --init
- make clean all
- ./test.exe
name: Build and Test
A couple of things.
+ git submodule update --init
Submodule 'repo_b' (https://myusername@bitbucket.org/myusername/repo_b) registered for path 'repo_b'
Cloning into 'repo_b'...
fatal: could not read Password for 'https://myusername@bitbucket.org': No such device or address
Clone of 'https://myusername@bitbucket.org/myusername/repo_b' into submodule path 'repo_b' failed