コードのチェックアウト

ソース コード チェックアウト タスクを使用して、1 つのジョブのみで使用するようにリポジトリをチェックアウトします。既定では、リポジトリは Bamboo の作業ディレクトリにチェックアウトされます。 

ソース コード チェックアウト タスクを使用すると、次のことも可能です。

  • リポジトリを作業ディレクトリのカスタム ディレクトリ パスにチェックアウトできます。
  • ビルドのさまざまな段階で行う複数のチェックアウトを指定できます(プランの任意の時点で、別のソース コード チェックアウト タスクをジョブに追加するだけです)。

プランのすべてのジョブ、またはすべてのプランで使用するリポジトリを指定する方法については、「ソース コード リポジトリへのリンク」を参照してください。

新しいソース コード チェックアウト タスクを設定するには、次の手順に従います。

  1. タスクを実行するジョブに移動します。
  2. [Tasks (タスク)] タブをクリックし、タスク リストで既存のソース コード チェックアウト タスクを選択するか、[Add Task (タスクを追加)] ボタンを使用して新しいタスクを追加します。
  3. Configure the task:

    Task Description
    Enter a description of the task, for display in Bamboo.

    Disable this task
    Check, or clear, to selectively run this task.

    Repository
    Select the desired repository. If you wish to add different types of repositories, they must have been previously defined on the plan's Source Repositories tab. See Linking to source code repositories for a list of supported SCMs.

    Checkout Directory
    The location to which the contents of the selected repository will be checked out to when the task executes.

    Force Clean Build
    Deletes the previously checked out directory and checks it out again prior to the next build. This may significantly increase build times.

  4. このタスクを使用して別のリポジトリをチェックアウトするには、[Task (タスク)] 画面の下部にある [Add repository (リポジトリを追加)] をクリックします。 
  5. [保存] をクリックします。

スクリーンショット: ソース コード チェックアウト タスクの設定


注意

  • If you need to use a type of repository that is not supported, a number of third-party Source Repository plugin modules are available (e.g. ClearCase plugin). You can also write a Source Repository Module plugin to enable Bamboo to connect to your repository.
  • If Source Code Checkout task is used in Deployment Environment, it will only checkout the latest revision instead of the revision used in the related build result.  BAM-13279 - Getting issue details... STATUS
最終更新日 2020 年 11 月 16 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.