This page describes how to configure a JUnit Parser executable for a Task. When creating a new Job or configuring an existing one, you need to specify the Tasks that will execute the Job's builds. You must specify an executable for each Task. If you specify an Ant, Grails or Maven executable, you will also need to choose a JDK. When creating a new Plan, you can configure the Tasks for the Plan's default Job. An executable is a program external to Bamboo used to automate processes. Generally, executables compile source code to generate compiled executable files (referred to as artifacts in Bamboo). Ant, Maven, MSBuild or PHPUnit are just some examples of executables that can be used as part of your build process.New executables can be defined as capabilities in Bamboo. Once an executable has been defined in Bamboo, it can be configured as part of a Task. |
On this page: |
Configuring a JUnit Parser Executable for a Task
Before you begin:
- Java Builder Tasks in Bamboo (e.g. Maven) parse test information as part of the Task. You do not need to configure a Test Task, if you have specified that test results will be produced as part of the Builder Task.
To configure a JUnit executable for a Task:
- Navigate to the Task configuration for the Job (this will be the default Job if creating a new Plan).
- Click the name of the desired JUnit Parser Task, or click 'Add Task' and then 'JUnit Parser' if creating a new Task.
- Update the Task settings:
- 'Task Description' — Enter a description of the Task, for display in Bamboo.
- 'Specify custom results directories' — Enter the name of the test results directory (or multiple directories, separated by commas). You can also use Ant-style patterns such as */test-reports/.xml. Please specify file path relative to your Job build's root directory. Do not specify an absolute path.
For Jobs that use CVS, the Job build's root directory is<bamboo-home>/xml-data/build-dir/JOB_KEY/<cvs-module>
.
- Click the 'Save' button to save your changes.