Usage Scenario
Clone submodules via SSH protocol in a build job
How to Set Up
-
For submodules reside on OneDev server, make sure they are referenced using same
host
as specified inSSH root url
in system setting -
Make 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