|
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 ファイルと依存関係ファイルが破損する可能性があります。 |