When you configure a plan, you need to specify which builder should be used for the plan's builds. If you specify an Ant builder, you will also need to choose a JDK.
To configure an Ant builder for a plan,
If you are creating a new plan, start at step 5.
- Click 'Home' to go to the Dashboard.
- Click the 'All Plans' tab.
- Locate the plan in the list and click this icon:

- The 'Configuration' tab will be displayed. Click the 'Builder' sub-tab.
- The 'Builder' sub-tab will be displayed.
- In the 'Builder' dropdown, select the Ant builder that you wish to configure for this plan (e.g. "Ant"). The builder that you select will become one of the plan's capability requirements. For details please see Specifying a Plan's Capability Requirements.
Tip: If you want to configure a new shared local builder capability in Bamboo, you can do so by clicking the 'Add New Builder' link and entering the builder details in the window that displays. Once you have added the new builder, it will be available for you to select from the 'Builder' dropdown.
- The screen will refresh to display the builder settings specific to Ant:
- 'Build File' — Type the relevant filename (e.g.
build.xml
). You can include variables (see Using Global or Build-specific Variables).
- 'Target' — Specify the Ant target that you want Bamboo to execute each time the source code changes. For example:
test
(this will run the Ant target 'test'). You can also use '-D' to define one or more JVM parameters, e.g.: -Djava.awt.headless=true
(this will pass the parameter 'java.awt.headless' with a value of 'true'). You can also include variables (see Using Global or Build-specific Variables).
- 'Build JDK' — Choose a JDK from the list. The JDK that you select will become one of the plan's capability requirements. For details please see Specifying a Plan's Capability Requirements.
Tip: If you want to configure a new shared local JDK capability in Bamboo, you can do so by clicking the 'Add New JDK' link and entering the JDK details in the window that displays. Once you have added the new JDK, it will be available for you to select from the 'JDK' dropdown.
- Update the system environment variables and working directory. These are optional settings:
- 'System Environment Variables' (Optional) — Specify any additional* operating system environment variables you want to pass to your build; Please note, multiple variables must be separated with spaces, and parameters with spaces must be quoted (e.g 'ANT_OPTS=-Xms200m -Xmx700m'). You can also include Bamboo global or build-specific variables (see Using Global or Build-specific Variables).
* i.e. additional to the existing environment variables (see Viewing Bamboo's System Information for a list). Note that existing environment variables are automatically available to the builder, thus you don't need to specify them in the 'System Environment Variables' field.
- 'Working Sub Directory' (Optional) — If you leave this field blank, Bamboo will look for the build files in the build root directory (which is assumed to be the build's Working Directory, as described in Locating Important Directories and Files). You can override this option by specifying an alternative working directory (which must be a subdirectory of the root directory). For example, if your plan has a build script in a subdirectory, and the script needs to be run from within that subdirectory, you would type the name of that subdirectory in the 'Working Sub Directory' field.
Click the 'Save'/'Done' button if you are editing an existing plan. If you are creating a new plan, you can either click the 'Save'/'Done' button to create the plan without completing the rest of the wizard (check/uncheck the 'Enable Plan' checkbox to create your plan as enabled/disabled as desired) or click the 'Next' button to go to the next page:
Specifying a Plan's Capability Requirements