This documentation relates to an earlier version of Bamboo.
View

Unknown macro: {spacejump}

or visit the current documentation home.

Bamboo では、Maven (2.x 以降のみ) 実行可能ファイルをエージェントごとに分離できます。特定の Maven 実行可能機能に対してリポジトリ分離を設定すると、該当する実行可能ファイルを使用する各エージェントにそれぞれ独自の非公開 Maven 2.x アーティファクト ディレクトリが割り当てられ、これらの jar ファイルや依存関係ファイルの破損を回避できます。分離された各リポジトリ ディレクトリのパスは次のようになります。

$BAMBOO_HOME/.m2/AGENT-${agendid}/repository

You may want to configure repository isolation for Maven executables, if you run multiple Maven executables on one server machine which run under the same user account on that server, but belong to different Bamboo agents. In this case, the agents will use the same default Maven artifacts directory: $HOME/.m2/repository (or %USERPROFILE%\.m2\repository for Windows-based servers). This is the directory to which Maven dependency jars are downloaded and where project artifacts are installed during the "install" phase of a Maven build.

したがって、Bamboo でこれらの複数の Maven 実行可能ファイルが同時に使用されると、問題が発生する可能性があります。たとえば、1 台のコンピューター上の複数のエージェントがそれぞれ異なる Maven 実行可能機能を持ち、キューから同時に Maven ビルドを実行し始めた場合、異なる Maven 実行可能ファイルが同じ依存関係を同じアーティファクト ディレクトリの場所にダウンロードしようとし、ダウンロードされた jar ファイルと依存関係ファイルが破損する可能性があります。

On this page:

Configuring Repository Isolation for Maven Executables

始める前に

  • この機能は Maven 1.x 実行可能ファイルでは使用できません。
  • Bamboo で設定する Maven 実行可能ファイルに対してローカル リポジトリ分離を強制する場合は、使用する実行可能ファイルのラベルからそれがわかるようにしてください。たとえば、「Maven 2.x with local repository isolation (ローカル リポジトリ分離を使用した Maven 2.x)」などを使用します。

リポジトリ分離を使用した新しいローカル サーバー Maven 機能を設定するには、次の手順に従います。

  1. Click the 'Administration' link in the top navigation bar.
  2. Click the 'Server Capabilities' link in the left navigation column to display the 'Server Capabilities' page, which lists all local server capabilities currently defined in your Bamboo system.
  3. In the Add Capability section at the end of this page, choose your executable and enter its details as described:
    • 'Capability Type' — Select 'Executable'
    • 'Type' — Select one of the Maven options (2.x or later)
    • 'Executable Label' — Enter 'Maven with local repository isolation'
      (info) You can use any label you wish. However, it will help you and your Bamboo users if you enter an appropriate executable label that identifies this Maven 2.x executable as one that uses local repository isolation.
    • 'Path' — Enter the path for your Maven executable
  4. 追加」ボタンをクリックします。
  5. Click the label for the executable you have just added. The executable capability summary screen will be displayed (see 'Maven 2.x Executable' screenshot below).
  6. Click the 'Edit Capability Configuration' link. The 'Configure Capability' screen will be displayed (see 'Maven 2.x Repository Isolation' screenshot below).
  7. Select the 'Local repository isolation' check box.
  8. 保存」ボタンをクリックします。


Screenshot above: Maven Executable


Screenshot above: Maven Repository Isolation

注意

関連トピック

Configuring a Shared Executable Capability

  • ラベルなし

2 Comments

  1. Barry Nijkamp

    This option disappeared in 3.3?

    1. PiotrA

      Unfortunately yes, due to regression it had disappeared. But it should be back in 3.4 - BAM-10104