The instructions on this page describe how to configure Bamboo to use a GitHub source repository.
Configuring a GitHub source repository
To add a new GitHub repository, navigate to the source repository settings for a plan or job, as described on Specifying the source repository.
- [リポジトリの追加] をクリックして新しいリポジトリを追加するか、既存のリポジトリ設定を編集します。
- Choose GitHub from the Source Repository list.
- Bamboo 内でリポジトリを識別するのに役立つ [表示名] を入力します。
- GitHub のユーザー名とパスワードを入力します。
- [リポジトリを読み込み] をクリックします。
- プランの GitHub ソース リポジトリ用に以下の高度なオプションを設定することができます。
詳細オプション
| サブモジュールを使用する | リポジトリにサブモジュールが定義されている場合は、サブモジュールのサポートを選択して有効にします。エージェントのサブモジュールにネイティブの GitHub 機能が定義されていない場合、サポートは無効になります。 |
|---|---|
| コマンド タイムアウト | これは、ハングした Bitbucket プロセスを停止するのに役立ちます。低速なネットワークでは、Bamboo が GitHub リポジトリの最初のクローンを作成する時間を確保するため、既定のタイムアウトを長くすることを検討してください。 |
| 詳細なログ | hg コマンドの --verbose および --debug オプションをオンにして、出力をビルド ログに渡します。Bamboo で GitHub に関する問題が発生した場合は、このオプションを使用してください。 |
| Enable Quiet Period (待機期間を有効にする) | 1 つのコミットが検出されてからビルドが開始されるまでの遅延を指定します。これによって、複数のコミットを 1 つのビルドに集約できます。 |
| Include/Exclude Files (ファイルを含める/除外する) | Bamboo が変更を検出するために使用する (または使用しない) ファイルを指定できます。 Enter into File Pattern a regular expression to match the files that Bamboo includes or excludes. The regex pattern must match the file path in the repository. See sub page for examples. |
| Exclude Changesets (チェンジセットを除外) | Enter a regular expression to match the commit messages for changesets that should not start a build. |
| Web リポジトリ | Web ブラウザでリポジトリを表示できる場合は、リポジトリの種類を選択します。 This allows links to relevant files to be displayed in the 'Code Changes' section of a build result. |
Stash - リポジトリの次の詳細を指定します。
| |
FishEye – リポジトリの URL およびその他の詳細を指定します。
リポジトリのパスを特定する方法 If you have previously run builds with changes from your repository, the easiest way of determining your repository path is to view the code changes and copy the path from the start of the path of one of the changed files, up to (but not including) the appropriate root directory. The root directories for repositories are the ones shown by FishEye when browsing a repository (e.g. |
4 Comments
Kingsquare
Dec 07, 2012It works like it should. I just have a (minor?) request: adding github / bitbucket to the 'web repository' link options. Since they are like Stash is already online, this would make connecting to such repo's fully integrated
Kingsquare
Jan 11, 2013In addition to this: it would allow uses to directly click on the changelist hash and be directed to the webrepository URL for that change... (thus allowing for faster navigation to various details of a build)
Anonymous
Dec 06, 2013We are evaluating Bamboo. Does Bamboo support Enterprise GitHub? And will it support branches?
ArmenA
Dec 06, 2013Please watch this improvement request - BAM-11589 - Getting issue details... STATUS