Clone Submodules via SSH
This tutorial explains how to clone submodules with SSH protocol in build job
For submodules reside on OneDev server, make sure they are referenced using same
host
as specified inSSH root url
in system settingMake sure you can clone all the submodules locally in your terminal. To make it working, you will need to add public key (normally content of file ~/.ssh/id_rsa.pub) to your account and make sure your account has permission to pull all submodule projects
Edit build setting of the main project to define a job secret containing your private key (normally content of file ~/.ssh/id_rsa)
Configure checkout step of the job to use SSH credential and specify secret defined above as private key