Bamboo upgrade guide
You can upgrade Bamboo by installing a new version of Bamboo and setting it up with the configuration of the original Bamboo instance.
Overview
The recommended paths for upgrading Bamboo to a new version differ depending on whether you want to move to a new server or not:
Upgrading Bamboo locally | Upgrading Bamboo with a move to a new server |
---|---|
Perform the steps as described on this page. Make sure that your new Bamboo instance is not installed in the same directory as the original Bamboo instance. |
The cloned instance on the new server is referred to as original Bamboo instance. |
In both scenarios, the new Bamboo instance uses the home directory and the database of the original Bamboo instance.
We recommend that you test the Bamboo upgrade on a QA server before deploying to production.
If you are a Bamboo plugin developer, see our Bamboo API Changes by Version guide, which outlines changes in Bamboo that may affect Bamboo plugins compiled for earlier versions of Bamboo.
Before you begin
Determine your upgrade path
Upgrade path
- When upgrading from very old versions of Bamboo you must follow this upgrade path:
OLDER VERSIONS → 2.0.6 → 2.6.3 → 2.7.4 → 5.0--5.7 → 6.4
- When upgrading from earlier than Bamboo 5.0, you must upgrade to any of Bamboo 5.0–5.14 before upgrading to Bamboo latest version:
4.0--4.4 → 5.0--5.14 → 6.4
- When upgrading from Bamboo 5.0 and later, you can upgrade directly to the latest version of Bamboo:
5.0 + → 6.4
You do not need to downgrade before upgrading.
Before you begin
- Read the specific upgrade notes for your version of Bamboo.
- Read End of support announcements for Bamboo.
- Check whether the system where you are going to install the new Bamboo instance meets the requirements .
- Check whether any add-ons may require an update.
The installation path is referred to as <bamboo-install>
and points to the directory into which you extracted the Bamboo package. It is different from <bamboo-home>
, which points to the directory where Bamboo data is stored.
1. Export and back up the existing Bamboo data
Export the Bamboo database
There are two database backup scenarios, depending on whether you are using an embedded or external database.
Embedded HSQL database | External database |
---|---|
Create an export .zip file for the original Bamboo instance. For more information, see Exporting data for backup. The export may take a long time to complete and may require a large amount of disk space, depending on the number of builds and tests in your system. HSQL is not recommended for production Bamboo instances. | Use native database tools to create a backup. For more information about external databases, see Connecting Bamboo to an external database. |
Stop Bamboo
Stop the original Bamboo instance.
If you have Bamboo running as a Windows service, uninstall the service by using the UninstallService.bat
executable that came with your Bamboo instance.
Back up the Bamboo configuration
When the original Bamboo instance is shut down, back up your <b
> directory, which contains the amboo-home
builds
and configuration
directories. You can compress it into a .zip file.
2. Download and install a new Bamboo instance
To upgrade Bamboo, you must install a new Bamboo instance in a <bamboo-install>
directory that is different from the <bamboo-install>
directory of the original Bamboo instance .
This upgrade scenario uses the home directory and the external database of the original Bamboo instance.
- Make sure that the original Bamboo instance is not running before you start the new installation.
- To prevent data loss during updates or reinstallation, the
<b
>amboo-home
<
>Bamboo-install
The guidelines for the new Bamboo instance installation are the following:
Mac OS X
- The Mac installer deletes the previous version of Bamboo.
- Follow the Mac OS X install instructions.
Linux
- Delete your old
<
>Bamboo-install
- Follow the Linux install instructions.
Windows
- The Windows installer deletes the previous version of Bamboo.
- Follow the Windows install instructions.
- Configure Bamboo to run as a service on Windows, using the
service.bat
executable.
3. Configure the new Bamboo instance
Set the home directory for the new Bamboo instance
Set the <home-directory>
to use the <home-directory>
of the original Bamboo instance:
- Go to the new Bamboo instance <bamboo-install> directory. It is the directory where you installed Bamboo.
Open atlassian-bamboo/WEB-INF/classes/
bamboo-init.properties
For Bamboo versions prior to 5.1, the file path is:
<bamboo-install>/webapp/WEB-INF/classes/bamboo-init.properties
- Set the
bamboo.home
variable to use the<bamboo-home>
path of the original Bamboo instance.
Reconnect external user directories (optional)
If you had integrated the original Bamboo instance with Crowd or LDAP, you must enable the integration for the new Bamboo instance.
For more information, see Integrating Crowd with Bamboo and Integrating Bamboo with LDAP.
Update any installed add-ons
If you installed any add-ons in addition to the pre-installed system add-ons:
- Check if all add-ons are compatible with the new version of Bamboo.
- Update any add-ons that are out-of-date.
- Disable any add-ons that are incompatible with the new version of Bamboo.
Automatic update of remote agents
For Bamboo 3.2 and later, remote agents are updated automatically. Remote agents automatically detect when a new version is available and downloads new classes from the server.
For more information, see Bamboo remote agent installation guide.
Configure the context path
If you had a context path configured for the original Bamboo instance (http://hostname:[port]/context_path), you have to configure it for the new Bamboo instance. For more information, see Changing Bamboo's root context path.
Check database access permission
Before you start the new Bamboo instance, make sure that it has the write access to the database, which is required to complete the upgrade tasks.
4. Start Bamboo
Start Bamboo
Once you have installed Bamboo and set the bamboo.home
property, start the new Bamboo instance. The upgrade runs automatically.
You can check whether the upgrade was successful in the atlassian-bamboo.log
file.
Upgrading Bamboo may require reindexing.
Depending on the number of existing builds and tests, the reindexing process may take a significant amount of time, during which Bamboo will not be available.
Version-specific upgrade notes
The version-specific notes provide additional information to the main upgrade documentation. We recommend reading the version-specific notes for the original and new Bamboo instance versions.
Troubleshooting
If you followed the documentation and you still have problems with the upgrade process:
- Check the ARCHIVED - How to Upgrade/Migrate Bamboo article in the Bamboo Knowledge Base.
- Check other Knowledge Base articles.
- Ask questions at https://answers.atlassian.com.
- You can also create a support ticket. To help us address the issue, attach the
atlassian-bamboo.log
file to the ticket.