main
ROOT /
pages /
clone-submodules-via-ssh.md
17 lines | ISO-8859-1 | 804 bytes

Usage Scenario

Clone submodules via SSH protocol in a build job

How to Set Up

  1. 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

    Add Ssh Key

  2. Edit build setting of the main project to define a job secret containing your private key (normally content of file ~/.ssh/id_rsa)

    Add Private Key

  3. Configure checkout step of the job to use SSH credential and specify secret defined above as private key

    Checkout With Ssh

Please wait...
Page is in error, reload to recover