You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
When you configure a plan, you need to specify which builder should be used for the plan's builds. If you specify a Maven builder, you will also need to choose a JDK.
To configure a Maven 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 Configuration' sub-tab.
- The 'Builder Configuration' sub-tab will be displayed (see screenshot below).
- In the 'Builder' field, select the Maven builder that you wish to configure for this plan (e.g. "Maven 2").
The builder that you select will become one of the plan's capability requirements. For details please see Specifying a Plan's Capability Requirements.
- The screen will refresh to display the builder settings specific to Maven:
- 'Goal' — Specify the Maven goal that you want Bamboo to execute each time the source code changes. For example:
clean test (this will run the Maven goal 'clean' followed by the Maven goal '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.
- Update the system environment variables and working directory:
- '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; or if you are creating a new plan, click the 'Next' button to go to the next page:
Specifying a Plan's Capability Requirements