Github for main project, Bitbucket for submodules

Is it possible to use Unity Cloud Build where Github hosts the main project, but the submodules are in Bitbucket?

It didn’t work with OAuth, throwing the (truncated) error-

AUTH: Error during checkout: /cygdrive/c/tools/cygwin/bin/gitc.exe  clone '--branch' 'development' '--recursive' '--' 'https://****2:****@github.com/puzzlecatsinc/mergeclash.git' 'BUILD_PATH/p/'  2>&1:Cloning into 'BUILD_PATH/p'...

And with SSH, it starts cloning, but seems to get stuck:

38: GIT: Checkout project...
39: GIT: git version (2.31.1)
40: GIT: Checking out git@github.com:org/repo.git/development
// 20 minutes later ..

I found some old threads and documentation for doing it with the same provider, but nothing cross-provider.

Does anyone have solutions or suggestions to try? (We’re currently using Game.ci’s builder which handles this, but are experimenting with Unity Cloud)

Update: SSH worked eventually, just took like an hour

hi. i am using pre-scripth git patching

git config --global url."https://GITLOGIN:GITPAS@git.address.com/".insteadOf "https://git.address.com/"

it’s working for me

how did you make it via SSH?

I set my SSH URL to git@github.com:org/repo.git/development and added the Unity Cloud Build SSH key to my Github and Bitbucket accounts