Skip to main content
Version: QB14

Working with Google git-repo

Prerequisites

Repo is a tool which is built on top of Git. QuickBuild utilizes the repo command to interact with remote git-repo repository. If this command is not in system path, you will need to specify location of the command by configuring Repo plugin as below:

Further more, git-repo command (repo) location can be specified on a per-node basis by following below steps:

  1. Open Repo plugin setting page and define the repo path property as:

    ${node.getAttribute("repoPath")}
  2. For each node that does not have git-repo on system path, define the user attribute repoPath to point to the actual repo command path like below:

NOTE: example above is just for demonstration, you can use any other user attribute name instead of repoPath.

warning

As git-repo is built on top of git, the Git plugin and git command should be also configured properly. Please refer to Working with Git page for details.

Creating a Repo Repository

You may refer to this page on how to add a repository.

Supported URL prefixes

Below URL prefixes are supported:

  • ssh://host.[:port]/path/to/repo.git/
  • git://host.xz[:port]/path/to/repo.git/
  • http[s]://host.xz[:port]/path/to/repo.git/
  • ftp[s]://host.xz[:port]/path/to/repo.git/
  • rsync://host.xz/path/to/repo.git/.

If https is used, and your credential need password, you need first add the credential manually to the nodes which you want check out code to.

If ssh is used, please use public key without password for authorization and you need not specify the password when you create the repository. You can reference your SSH manual on how to create public key without password.

Proof build support

warning

The proof build does not support, please use git proof build instead.