For more information, see Adding a new SSH key to your GitHub account in the GitHub documentation. You can also add your SSH key to your GitHub account so that all repositories in your account are accessible to Cloud Build. In the Key field, paste in your public key from the Grant us access to your source control window, and then click the Add key button.įor more information on deploy keys, see Managing Deploy Keys in the GitHub documentation. In the Title textbox, type name to identify this key. In the sidebar, click Deploy Keys, then click the Add deploy key button. In your repository, click the Settings tab. On your profile page, click Repositories, then click the name of your repository. In the upper-right corner of any GitHub page, click your profile photo, then click Your profile. To add your SSH key to your project in GitHub: When Cloud Build detects that the repository is private, it displays the Grant us access to your source control screen. If your repository is private, Cloud Build must use SSH to connect to it. Unity Cloud Build automatically re-writes the URL into the format it needs. If you are hosting Git on a private server, you must use SSH to connect to your repository.The following are examples of URLs for GitHub, bitbucket, and GitLab: See Improving Git protocol security on GitHub for more information. If you are connecting via SSH, there are new security steps. You can specify the URL to use the protocol. To connect to your repository, you must specify the URL to your Git server. If your repository is private, see the Using private repositories section. If your repository is public, Cloud Build automatically connects to it, and you can skip to Setting up a target build platform. When Cloud Build connects to the hosting site, it automatically detects whether your repository is public or private. Note: If you are hosting Git on a private server, you must use SSH to connect to your repository.įrom the SCM Type drop-down menu, select GIT. For information on the format of the URL, see URL syntax. In the SCM URL field, enter the URL of your Git server in either of the following formats:
Unity cloud build added to queue manual#
In the Source Control window, click the Manual tab. To configure Cloud Build to use SSH to access your repository:
Unity cloud build added to queue code#
To configure a Project that retrieves a repository from a different account, sign out of the source code management service first, then configure the Project.įor the next step, see Setting up a target build platform. Note: Cloud Build uses your current credentials to retrieve the repository list if you are currently signed into the source code management service.