[Bamboo Knowledge Base]
このページでは、NAnt 実行可能ファイルを使用する Bamboo タスクの設定方法を説明します。
関連ページ
Ant タスクを設定する方法は次のとおりです。
Complete the following settings:
NAnt の設定 | |
---|---|
タスクの説明 | A description of the task, which is displayed in Bamboo. |
実行可能ファイル | タスクを実行するために使用できる NAnt 実行可能ファイル。選択した実行可能ファイルは、タスク (またはジョブなど) の要件の 1 つになります。 You can add other executables , if required. |
ビルド ファイル | The relevant file name (e.g. default.build ). You can include variables (see Bamboo variables). |
Targets | The NAnt target that you want Bamboo to execute. for example: |
オプション | The NAnt command line options that you want to include. You can also include variables (see Bamboo variables). |
必要に応じて、環境変数と作業ディレクトリの設定を指定します。
環境変数 | (Optional) Additional system environment variables that you want to pass to your build. Note that existing environment variables are automatically available to the executable. You can also include Bamboo global or build-specific variables (see Bamboo variables). |
Working Sub Directory | (オプション) Bamboo が実行ファイルを実行する、ジョブのルート ディレクトリに相対的な代替サブディレクトリ。ルート ディレクトリには、ジョブの構成済みソース リポジトリから確認されたものがすべて含まれます。このフィールドを空白のまま残した場合、Bamboo はルート ディレクトリでビルド ファイルを検索します。このオプションは、サブディレクトリ内にビルド スクリプトがあり、実行可能ファイルをそのサブディレクトリ内から実行する必要がある場合に便利です。 |
Powershell スクリプトとして実行 | (オプション、Windows のみ).bat ファイルを解釈する cmd.exe ではなく Powershell でスクリプトを実行するには、「Powershell スクリプトとして実行」チェックボックスをチェックします。インライン エディタは Powershell 構文をサポートします。 |
NAnt ビルドのコード カバレッジ収集には Clover を使用できません。Clover は Ant、Maven、Grails などの Java/Groovy ベースのプロジェクトのビルダーのみをサポートしているためです。