The instructions on this page describe how to configure a Git source repository.

On this page:

Configuring a Git Source Repository

Navigate to the source repository settings for a Plan or Job, as described on Specifying the Source Repository for a Plan. Choose to add a new or edit an existing repository and select Git in the Source Control drop-down. 

Git gives you the following options:

リポジトリ URL

Type the full path to your Git repository (eg: git://github.org/atlassian/bamboo-git-plugin.git)

有効な URL の形式は次のとおりです。

  • 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
  • /path/to/repo.git
  • file:///path/to/repo.git 

 

ブランチ  Type the name of the relevant branch (or tag) you want to work on. Leave empty to work on master branch.
認証タイプなしChoose none if you want to access the repository anonymously.
パスワードChoose password if you want to authenticate with a username and password.
SSH private key

Upload a private key and provide the corresponding SSH Passphrase.

Use shallow clones (shallow clone を使用する)

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.

POM ファイルの場所

Type the path to your project's pom.xml file which is relative to the root of your Git Repository URL (defined above).

(Maven 2 プロジェクトをインポートする場合にのみ利用可能) 


Screenshot: Source Repository — Git

注意

関連トピック

Specifying the Source Repository for a Plan
Specifying the Source Repository for a Job