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.

  1. [リポジトリの追加] をクリックして新しいリポジトリを追加するか、既存のリポジトリ設定を編集します。
  2. Choose GitHub from the Source Repository list.
  3. Bamboo 内でリポジトリを識別するのに役立つ [表示名] を入力します。
  4. GitHub のユーザー名パスワードを入力します。
  5. [リポジトリを読み込み] をクリックします。
  6. プランの 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 - リポジトリの次の詳細を指定します。
    • Stash URL - Stash インスタンスの URL (例: https://stash.mycompany.com)。
    • Stash プロジェクト キー - Stash 内のプロジェクトのキー (例:「CONF」)。
    • リポジトリ名 - Stash 内のリポジトリの名前 (例:「conf-dev」)。

FishEye – リポジトリの URL およびその他の詳細を指定します。

    • FishEye URL - FishEye リポジトリの URL (例:「https://atlaseye.atlassian.com/」)。
    • リポジトリ名 - FishEye リポジトリの名前 (例:「Bamboo」)。これは事実上、リポジトリ パスのエイリアスです。
    • リポジトリ パス - FishEye リポジトリのパス (例:「/atlassian/bamboo/」)。

リポジトリのパスを特定する方法

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. trunk)). For example, if a code change listed /atlassian/bamboo/trunk/bamboo-acceptance-test/pom.xml, the path would be /atlassian/bamboo/.
If you have not previously run builds with changes from your repository, you will need to ask your FishEye administrator for the repository path indexed by FishEye.

  • ラベルなし

4 Comments

  1. Kingsquare

    It 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 (wink)

    1. Kingsquare

      In 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)

  2. Anonymous

    We are evaluating Bamboo. Does Bamboo support Enterprise GitHub? And will it support branches?

     

    1. ArmenA

      Please watch this improvement request - BAM-11589 - Getting issue details... STATUS