As Bamboo Cloud service is nearing end-of-life (Atlassian is discontinuing their Bamboo Cloud offering on January 31, 2017) , Unif.io is converting a customer’s Bamboo Cloud instance to a managed Bamboo Server and build farm at AWS. As we transitioned the server, we came across an issue that we didn’t find a quick solution for online. I’m writing this blog in case anyone else runs into a similar situation.

We would like to continue having a similar URL in our Bamboo Server instance as we did with Bamboo Cloud which included the ‘builds’ context. The Bamboo URL we want to use is: https://www.mycompany.com/builds

We set this up inside the Host element in the main conf/server.xml file. Here’s how we set it up:

<Engine name=”Catalina” defaultHost=”localhost”> <Host name=”localhost” appBase=”webapps” unpackWARs=”true” autoDeploy=”true”> <Context path=”/builds” docBase=”${catalina.home}/atlassian-bamboo” reloadable=”false” useHttpOnly=”true”>

This worked perfectly when we set up a new Bamboo server instance. The site was responsive at https://www.mycompany.com/builds. However, when we created a new instance and imported our data from Bamboo Cloud (see https://confluence.atlassian.com/migration/bamboo-server for the procedure), the site no longer worked. When we went to our URL, we were redirected to: http://localhost:8085/userlogin!doDefault.action?os_destination=

The issue is that the data that is brought over from Bamboo Cloud is set up to use a Base URL of http://localhost:8085. We were setting the context in the applications server.xml file, but the data folder contains the localhost address. This needed to be changed to match that of the URL we want. This can be set within the UI in the Bamboo Administration Page:

However, since we cannot log into the Bamboo UI, this needed to be changed in the configuration files before the service is started.

To update the context of the Bamboo server:

Modify the <data dir>/xml-data/configuration/administration.xml file. Update myBaseUrl to the URL desired for your server. Example: myBaseUrl>https://www.mycompany.com/builds</myBaseUrl> Restart Bamboo service.

Now you should be able to reach your URL including context: https://www.mycompany.com/builds

Next, you should verify that the server’s address URL is correct in the Administration page under General Configuration:

That is it. Happy building…

Kathy Jonick, Senior Consultant

Unif.io