|
The instructions on this page describe how to configure a GitHub source repository for either a Plan or a Job.
 |
|
On this page:
 |
|
|
Configuring a GitHub Source Repository
The instructions in this section apply to configuring a source repository for both Plans and Jobs.
To configure a GitHub 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 GitHub repository as described below:

- 'Repository' — Select 'GitHub'.
- 'Username' — Type the username required to access the GitHub account. It will be also used to access chosen repository.
- 'Password' — Type the password required to access the GitHub account. It will be also used to access chosen repository.
- Click 'Load Repositories' to load the repositories for the username entered above, then complete the following:
- Select the 'Repository' and 'Branch' that you want to check out code from.
- '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.



Screenshot above: Source Repository — GitHub

Appendix - Build Strategies
Notes
Related Topics
Specifying the Source Repository for a Plan
Specifying the Source Repository for a Job
Git