- Home /
Unity Cloud Build with git submodule
Hey,
I'm trying to build unity project which uses a git submodule. Both main repository and submodule have SSH keys set. Every time Cloud Build is trying to build the project, I get an error:
remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile. 17: fatal: Authentication failed
I've tried to set up several projects with different submodules. Each time I get the same result. Is Cloud Build at all compatible with git submodules? Did I miss some settings somewhere?
Answer by Jinja · Sep 25, 2016 at 01:46 PM
I found the answer in these threads... https://community.unity.com/t5/Unity-Cloud-Build/Support-for-Git-submodules/td-p/2500670 https://community.unity.com/t5/Unity-Cloud-Build/GIT-Submodule-Authentication-failed/m-p/2303870#M6806
You need to change your git repo link in your .gitmodules file to the git@ syntax instead of git:// or https:// For example...
git@bitbucket.org:youraccount/yourrepo.git
After this change my cloud build started working again. Good luck!
This worked for me. Thanks!
$$anonymous$$ake sure to also add Unity Cloud Build's SSH key (the one used for the parent repo) to the submodule as well so it can get access.
Answer by Jinja · Sep 27, 2016 at 10:37 AM
I get the same error now that I've added a submodule to my repo'. Like @radwaniecki I added the SSH key to the submodule repo' too but it didn't help. Both of my repo's are on bitbucket.
Has anybody managed to get a submodule working with Unity Cloud Build?