This page describes how to configure a Bamboo task that uses a Grails executable.

Bamboo は Grails バージョン 1.2.x、1.3.x、および 2.x をサポートします。

関連ページ

Grails タスクを設定する方法:

  1. ジョブのタスク設定タブに移動します(新しいプランを作成するとデフォルト ジョブとなります)。
  2. Click the name of the desired Grails task, or click Add Task and then Grails if creating a new task.
  3. Complete the following settings:

    Grails configuration
    タスクの説明A description of the task, which is displayed in Bamboo.
    実行可能ファイルThe Grails 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.
    Grails コマンド

    The Grails commands that you want Bamboo to execute. See the Grails Command Line Reference documentation for more details on Grails commands.

    • '-D' を使用して、1 つまたは複数の JVM パラメーターを定義できます。例えば、-Djava.awt.headless=true は、パラメーター「java.awt.headless」に「true」という値を渡します。
    • You can include variables (see Using global, plan or build-specific variables).
    ビルド JDK

    The JDKs that are available to perform the task. The JDK that you select will become one of the task's (and so, the job's) requirements.
    You can add other JDKs, if required.

  4. 必要に応じて、環境変数と作業ディレクトリの設定を指定します。
  5. If applicable, select The build will produce test results and choose one of the following:

    Look in the standard test results directoryBamboo looks in the standard directory for the test results. Use this unless you've customised your test runner to output the results to a different location.
    カスタム結果ディレクトリの指定Specify the custom directory, relative to the root directory, where test results will be created. You can use Ant-style patterns such as **/test-reports/*.xml. Bamboo requires test results to be in JUnit XML format.
    (warning) For jobs that use CVS, the root directory is <bamboo-home>/xml-data/build-dir/JOB_KEY/<cvs-module>.
  6. 保存をクリックします。