|
The instructions on this page describe how to configure a Git source repository for either a Plan or a Job.
 |
|
On this page:
 |
|
|
Configuring a Git Source Repository
The instructions in this section apply to configuring a source repository for both Plans and Jobs.
To configure a Git source repository:
If you are creating a new Plan or new Job, or have come from the Editing a Plan or Editing a Job topics, start at step 4.
- Navigate to the source repository settings for a Plan or Job, as described on Specifying the Source Repository for a Plan and Specifying the Source Repository for a Job respectively.
- Enter the details for the Git repository as described below:

- 'Repository' — select 'Git'.
- 'Repository URL' — Type the full path to your Git repository (e.g. '
git://github.org/atlassian/bamboo-git-plugin.git |
'). Valid URLs are of the form:
git://host.xz[:port]/path/to/repo.git |
ssh://[user@]host.xz[:port]/path/to/repo.git |
[user@]host.xz:path/to/repo.git |
http[s]://host.xz[:port]/path/to/repo.git |
(for further references visit Git documentation)
- 'Branch' (Optional) — Type the name of the relevant branch (or tag) you want to work on. Leave empty to work on
master branch.
- 'Authentication Type' — Select the authentication type you want to use to access the Git repository.
- If you select 'None', Bamboo will not authenticate at all.
- If you select 'Username/password' (use that authentication type for http/https and SSH hosted repositories), the following fields will appear:
- 'Username' (Optional) — Type the username (if any) required to authenticate to the repository hosted with http(s) or SSH protocol.
- 'Password' (Optional) — Type the password (if any) required to authenticate to the repository hosted with http(s) or SSH protocol.
- 'Change Password' (Only available after first saving the Plan/Job with a password) — Select this check box if you want to change the password that is used to access the repository.
- If you select 'SSH private key' (use that authentication type for repositories accessible through ssh), the following fields will appear:
- 'SSH Key' — Choose an SSH private key from your hard drive.
- 'Change SSH Key' (Only available after first saving the Plan/Job with an SSH private key) — Select this check box if you want to change your SSH private key.
- 'SSH Passphrase' (Optional) — Type the passphrase for your SSH private key.
- 'Change Passphrase' (Only available after first saving the Plan/Job with a passphrase) — Select this check box if you want to change the passphrase for your SSH private key.
- 'Use shallow clones' — Select this setting to allow Bamboo to perform shallow clones (i.e. history truncated to a specified number of revisions). This should increase the speed of the initial code checkouts, however if your build depends on the full repository history, we recommend that you do not use this option. Shallow clones are enabled by default.
- 'Location of POM file' (Only available when importing a Maven 2 project) — Type the path to your project's
pom.xml file which is relative to the root of your Git Repository URL (defined above).



Screenshot: Source Repository — Git

Appendix - Build Strategies
注意
関連トピック
Specifying the Source Repository for a Plan
Specifying the Source Repository for a Job