View Source

h2. Prerequisites
QuickBuild utilizes the Git command (git) to interact with remote Git repository. If this command is not in system path, you will need to specify location of the command by configuring Git plugin as below:
!git-plugin.png!

Further more, Git command (git) location can be specified on a per-node basis by following below steps:
# Open Git plugin setting page and define the Git path property as:
{code}
${node.getAttribute("gitPath")}
{code}
# For each node that does not have Git on system path, define the user attribute _gitPath_ to point to the actual Git path like below:
!git-path.png!

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

h2. Creating a Git Repository
You may refer to [this page|Scm Support Overview] on how to add a repository.
h3. Supported URL prefixes
Currently, 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 based* URL 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.