Before using Bamboo as a production system, you need to switch from the embedded HSQL database, which is provided for evaluation purposes only. Please see the documentation for details.
Before using Bamboo as a production system, you need to switch from the embedded HSQL database, which is provided for evaluation purposes only. Please see the documentation for details.
Download the Bamboo Standalone (TAR.GZ Archive) file.
Extract the files to a directory of your choice. This directory will be referred to as your 'Bamboo installation directory'.
Set up your Bamboo home directory by opening the file named bamboo-init.properties in the <Bamboo installation directory>/webapp/WEB-INF/classes directory. In this file, insert the property "bamboo.home", with an absolute path to your desired Bamboo home directory. e.g. bamboo.home=/test/bamboo-home Please ensure that your Bamboo home directory is not located inside the Bamboo installation directory.
Start the Bamboo server by running ./bamboo.sh console in the installation root directory.
To access Bamboo, go to your web browser and type this address: http://localhost:8085/.
Follow the Setup Wizard. This will guide you through the process of setting up your Bamboo server, database and creating an Admin user.
Before using Bamboo as a production system, you need to switch from the embedded HSQL database, which is provided for evaluation purposes only. Please see the documentation for details.
2. Configuring the Default Agent
Your default local agent will inherit all local server capabilities that are defined in your Bamboo system. If you had system environment variables set up for builders and JDKs on your system, then the Bamboo installation process will have set them up as local server capabilities. However, if they were not automatically configured, you can configure them yourself. You may also want to set up additional custom capabilities to match specific types of builds to the agent (e.g. functional.tests=true, fast.builds=true, operating.system=linux, etc.
Click the 'Administration' link in the top navigation bar.
Click the 'Agents' link in the left navigation column. The 'Agents' screen will display.
Click the 'Default Agent' in the list of agents.
Click the 'Add Capability link to add agent-specific capabilities that override shared capabilities (e.g. custom capability: operating.system=linux). See the following pages for detailed instructions:
To run your build on your default agent, you will need to ensure that the capability requirements of the plan can be met by the capabilities of your default agent.
Click the 'Create Plan' link in the top navigation bar.
Enter the plan details as described on the following pages:
Specifying a Plan's Notifications(you need to configure Bamboo's SMTP and/or instant messaging|#notifications capabilities for this feature — see '9. Configuring Notifications' below)
You can extend Bamboo to support additional repositories, builders and build tools for your plans by installing plugins. Check out our plugin library for more information.
4. Running a Build
Click 'Home' to go to the Dashboard and click the 'All Plans' tab.
Locate the relevant plan and click the 'Check Out and Build' icon:
You can view the build's activity on the 'Current Activity' tab. (if your plan does not build, check whether all of its capability requirements can be met by the remote agent's capabilities)
You can configure your build plan to be triggered by code changes or on a schedule, rather than manually triggering it. See About Build Triggering for more information.
Click 'Home' to go to the Dashboard and click the 'All Plans' tab.
Locate the relevant plan and click the plan name. The plan summary will display, showing the latest build result. You can also click the 'Completed Builds' tab to see a summary list of build results.
If you have Atlassian's Clover installed, you can also view the Clover code coverage by clicking the 'Clover' tab. See '8. Using Bamboo with Clover' below for details.
Using Bamboo with your Development Tools
5. Using Bamboo with your IDE
Integrating Bamboo with your IDE (via an Atlassian IDE Connector) allows you to work with Bamboo from within your IDE. You won't have to switch between applications to see what's happening with your builds. You can start them, monitor them and view the results without leaving your IDE.
The Atlassian IDE Connectors are currently available for IntelliJ IDEA and Eclipse.
Integrating Bamboo with Atlassian's JIRA allows you to access Bamboo information from within JIRA and vice versa. Your team will be able to see which issues are being actively coded, which builds have run for an issue, find the build that fixed the issue, download your distribution and much more.
Configure the JIRA plugin for Bamboo and the Bamboo plugin for JIRA on your Bamboo and JIRA servers by following the instructions in this document: Integrating Bamboo with JIRA
Read the following documents for instructions on how to use Bamboo with JIRA:
Integrating Bamboo with Atlassian's Confluence allows you to easily access Bamboo information from within Confluence. You will be able to view the status of builds, build history and charts from within your wiki and share it with team members.
Configure the Bamboo plugin for Confluence by following the instructions in this document: Bamboo Plugin
The Bamboo Plugin document also contains information on how to use the various Confluence macros made available by the Bamboo Plugin.
8. Using Bamboo with Clover
If your organisation uses the Atlassian Clover code-coverage tool, Bamboo can record code-coverage details (i.e. the percentage of code covered by tests) for each build result. This can help you to monitor and improve code-coverage over your builds.
Edit the plan that you wish to record code-coverage details for.
Click the 'Administration' link in the top navigation bar.
Click the 'Groups' link in the left navigation column. The 'Manage Groups' screen will be displayed.
In the 'Group Name' field (in the 'Create Group' section), type a name for your new group. You can add users to this group when you create them in the next section.
Click 'Save' to save your new group.
Click the 'Administration' link in the top navigation bar.
Click the 'Users' link in the left navigation column.
Enter the 'Username', 'Password', 'Full Name', 'Email' and optionally the instant messaging 'Jabber Address' for the user.
Select a user group for the user.
「保存」ボタンをクリックします。
10. Configuring Notifications
Bamboo can automatically notify users when certain events occur in a build. For example, if the build has hung you can ensure that an email is sent to the appropriate people. Setting up the appropriate notifications can help your users to keep in touch with build activity on Bamboo. You can also help foster collaboration between team members by configuring notifications to be sent whenever someone comments on a build result.
Bamboo can send notifications based on build plan configuration. For example, you may wish to send an email to all users when a build has hung. To take advantage of this feature, you will first need to configure Bamboo to send SMTP email and/or instant messages.
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 'Notifications' sub-tab.
Add a new notification in the 'Add Build Notification' section by doing the following:
Specify the 'Event' and the 'Recipient Type' (this may include a child field such as 'User') for the notification.
Click the 'Add' button to add the notification.
Repeat the last step if you want to add more notifications for the plan.
Click the 'Done' button
11. Labelling Builds
A label is a convenient way to tag and group build results that are logically related to each other. For example, it might not be practical for your QA team to review every build, and you need to know which builds they have reviewed. By using labels such as "qa_passed" and "qa_failed", Bamboo allows them to simply indicate which builds have passed and failed QA.
Labels can be applied to build results automatically by specifying the label(s) in a build plan (note that only Bamboo administrators can do this) or applied ad hoc to build results by Bamboo users. Labels can also be used to define RSS feeds and to control build expiry.
Locate the 'Labels' link at the top of the screen (above the 'Summary' tab).
Click the label that you want to view the build results for. All build results with that label will be displayed.
12. Commenting on Build Results
Comments are a useful way to record and share information about builds. Together with notifications, they can help your team to collaborate more effectively. Comments made when code was committed are automatically copied from the repository. Comments can also be manually added to a particular build result.
From within the 'Build Result' screen, click the 'Comments' tab. A list of existing comments about this build result will be displayed.
Type your comment into the 'Add Comment' box, then click the 'Save' button.
Scaling your Build System
13. Setting up Distributed Builds
You can set up remote agents to distribute builds across multiple build servers. This is particularly useful if you need to run your builds in different geographic locations, or on different platforms. Installing a Bamboo agent on a new build server is a simple process and once installed, your main Bamboo server will be able to manage them.
Create a directory on the agent machine (e.g. bamboo-agent-home) to serve as the Bamboo agent home for the remote agent.
On your Bamboo server, click the 'Administration' link in the top navigation bar.
Click the 'Agents' link in the left navigation column. The 'Agents' screen will display.
Enable remote agent support by clicking the 'Enable Remote Agent Support' link.
Click the 'Install Remote Agent' link. The 'Installing a Remote Agent' screen will display.
Click the 'DOWNLOAD Remote Agent JAR' button and save the JAR file to the Bamboo agent home directory on your agent machine.
Copy the command under 'Running a Remote Agent' to your clipboard, e.g. java -jar atlassian-bamboo-agent-installer-2.2.4.jar http://172.20.5.83:8085/agentServer/, and execute it on your agent machine to start the remote agent.
Follow the instructions on the pages linked below to set up agent-specific capabilities for your remote agent:
The Elastic Bamboo feature allows you to run your builds in the Amazon Elastic Compute Cloud (EC2). This provides you with instant scalability for your builds, allowing you to keep your build queues short while minimising your hardware costs.
Click the 'Administration' link in the top navigation bar.
Click the 'Configuration' link in the left navigation column under the 'Elastic Bamboo' sub-header. The 'Elastic Bamboo Configuration' screen will display.
Click the 'Enable' button to enable Elastic Bamboo for your Bamboo installation. The 'Elastic Bamboo Configuration' screen will display.
Enter your 'AWS Access Key ID' and 'AWS Secret Access Key' (what are these?)
An elastic agent is essentially a remote agent that runs in the Amazon EC2. You can create elastic agents on the fly when you need them to run builds and shut them down when not required. This allows you to dynamically scale your computing resources to meet build demand.
Click the 'Administration' link in the top navigation bar.
Click the 'Instances' link in the left navigation column. The 'Manage Elastic Instances' screen will display.
Click the 'Start New Elastic Instances' link. The 'Start New Elastic Instances' screen will display. An elastic agent process runs in an elastic instance and will automatically start when an instance is started.
Enter '1' in the 'Number of instances' field.
Select the 'Default' elastic image configuration in the 'Elastic Image Configuration Name' dropdown. Your elastic agent will inherit its capabilities from this elastic image. It is possible to set up additional elastic images for use with Elastic Bamboo. Read Managing your Elastic Image Configurations for more information.
Click the 'Submit' button. The 'Manage Elastic Instances' page will display, showing the startup of your new instance.
Once you have set up an elastic agent, builds will be assigned to it, just as they are assigned to any other agent.
Amazon EC2 charges for the period of time that you have an instance running. Please ensure that you remember to shut down any elastic instances you start, to minimise your costs.
Analysing and Improving your Builds
15. Generating Reports
You can generate reports in Bamboo to help you identify problem areas to improve upon for your builds, based on the most common failures, tests that take longest to fix, long-running tests and more.
Click the 'Authors' link in the top navigation bar. The 'User and Author Statistics' screen will display.
Click the 'Statistics' tab. The 'Report Parameters' screen will display.
Select the parameters for your report, as follows:
'Report' — choose from the available reports. Available reports include:
You can configure custom reports by installing the appropriate plugins.
'Authors' — choose the author(s) on whom you want to report. You can use the <Ctrl> key to select multiple author.
'Group By' — choose whether your report's horizontal axis should show days, months or weeks. You can also specify 'Auto' (generally defaults to 'month').
Click the 'Submit' button to generate your report.
Click the 'Reports' link in the top navigation bar. The 'Report Parameters' screen will display.
Select the parameters for your report, as follows:
'Report' — choose from the available reports. Available reports include:
You can configure custom reports by installing the appropriate plugins.
'Build plans' — choose the plan(s) on which you want to report. You can use the <Ctrl> key to select multiple plans.
'Group By' — choose whether your report's horizontal axis should show days, months or weeks. You can also specify 'Auto' (generally defaults to 'month').
'Date Filter' — date range to report on.
Click the 'Submit' button to generate your report.
Important Next Steps
(Please note, you need to be an Administrator to do the tasks in this section.)
16. Connecting to an External Database
Before using Bamboo as a production system, you need to switch from the default HSQL database, which is provided for evaluation purposes only. Please see the documentation for details.
17. Backing up Data
To back up your Bamboo data, and establish processes for regular backups, please see the documentation.
Thank you for using Bamboo.
Thanks for choosing Bamboo. We're always happy to help. Feel free to email or call us with any questions you have.