Documentation for Bamboo 4.0.x. Documentation for earlier versions of Bamboo is available too.

This page describes how to configure a Bamboo task to use a Visual Studio (devenv.exe) executable.

Visual Studio タスクを設定する方法:

  1. Navigate to the task configuration for the job (this will be the default job if creating a new plan).
  2. 目的の MSBuild タスクの名前をクリックするか、新しくタスクを作成する場合は、タスクの追加をクリックし、Visual Studio をクリックします。
  3. Complete the following settings:

    Visual Studio 設定
    タスクの説明A description of the task, which is displayed in Bamboo.
    実行可能ファイルThe Visual Studio executable that is available to perform the task. The executable that you select will become one of the task's (and so, the job's) requirements.
    You can add other executables, if required.
    ソリューション
    The name of the Visual Studio solution file that you want Bamboo to execute. For example: RegexDemo/RegexDemo.sln. You can also include variables (see Using global, plan or build-specific variables).
    オプション

    Specify any Visual Studio command-line options that you want to include (e.g. /build Debug). You can also include variables (see Using global, plan or build-specific variables).

    プラットフォームSelect the platform toolset required to compile your solution. This is provided as an argument to Vcvarsall.bat (see this MSDN article for more details).
  4. 必要に応じて、環境変数と作業ディレクトリの設定を指定します。

    環境変数

    (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 Using global, plan or build-specific variables).
    Multiple variables should be separated with spaces. Parameters with spaces must be quoted (e.g ANT_OPTS="-Xms200m -Xmx700m").

    Working Sub Directory(オプション)  Bamboo が実行ファイルを実行する、ジョブのルート ディレクトリに相対的な代替サブディレクトリ。ルート ディレクトリには、ジョブの構成済みソース リポジトリから確認されたものがすべて含まれます。このフィールドを空白のまま残した場合、Bamboo はルート ディレクトリでビルド ファイルを検索します。このオプションは、サブディレクトリ内にビルド スクリプトがあり、実行可能ファイルをそのサブディレクトリ内から実行する必要がある場合に便利です。

  5. 保存をクリックします。