This is the documentation for Bamboo 5.7. View this page for the

Unknown macro: {spacejump}

of Bamboo, or visit the latest Bamboo documentation.

このページでは、Bitbucket リポジトリを使用するように Bamboo を設定する方法を説明します。

Bamboo では、次のレベルでリポジトリを指定できます。

  • グローバル - Bamboo のすべてのプランでリポジトリを利用できます。
  • プラン - Bamboo プランのすべてのジョブでリポジトリを利用できます。
  • ジョブ - Bamboo ジョブのすべてのタスクでリポジトリを利用できます。

The recommended approach is to set up linked source repositories at the global level – see Linking to source code repositories.

 

はじめる前に:

  • You will not be able to create plans or jobs that use a Bitbucket repository without specifying the shared local Mercurial or Git capability first. Read more about configuring a Version Control capability.
関連ページ

Bitbucket ソース リポジトリを設定する

  1. Navigate to the repository configuration for a linked repository, plan or job. See Linking to source code repositories.
  2. [リポジトリの追加] をクリックして新しいリポジトリを追加するか、既存のリポジトリ設定を編集します。
  3. [ソース リポジトリ] リストから [Bitbucket] を選択します。
  4. Bamboo 内でリポジトリを識別するのに役立つ [表示名] を入力します。
  5. Bitbucket の [ユーザー名] と [パスワード] を追加します。
  6. You can configure the following settings for a BitBucket source repository for your plan:
リポジトリ [リポジトリを読み込み] をクリックしたときに、明示的なアクセス権を持つすべてのリポジトリを Bitbucket から取得します。
ブランチ既定のブランチ以外のブランチのコードをチェックアウトする場合、ブランチを選択します。

詳細オプション


コマンド タイムアウト これは、ハングした Bitbucket プロセスを停止するのに役立ちます。低速なネットワークでは、Bamboo が Mercurial リポジトリの最初のクローンを作成する時間を確保するため、既定のタイムアウトを長くすることを検討してください。
詳細なログ

Mercurial の場合: Hg または Git コマンドの --verbose および --debug オプションをオンにして、出力をビルド ログに渡します。Bamboo で Git または Mercurial に関する問題が発生した場合は、このオプションを使用してください。

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.

Note: This option is not available for Git Repositories. See BAM-13376 - Getting issue details... STATUS for more information.

Mercurial Web リポジトリ - 次のいずれかのビューアー スキームを選択します。

    • Bitbucket Web リポジトリ スキーム (Bitbucket を使用している場合)
    • 既定の Web リポジトリ スキーム (hgserve) (Mercurial 独自の既定の Web サーバー)

Stash - リポジトリの次の詳細を指定します。

    • Stash URL - Stash インスタンスの URL (例: https://stash.mycompany.com)。
    • Stash プロジェクト キー - Stash 内のプロジェクトのキー (例:「CONF」)。
    • リポジトリ名 - Stash 内のリポジトリの名前 (例:「conf-dev」)。

See Integrating Bamboo with Stash for more information.

FishEye - リポジトリの次の詳細を指定します。

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

See Integrating Bamboo with FishEye for more information.

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

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.