Deployment logs in Bamboo Server

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

The information on this page is an extension to Locating important directories and files in which describes how to identify Deployment logs located in Bamboo home directory.

Solution

Run the following SQL statement against Bamboo's database:

1 2 3 4 5 6 7 8 select DP.DEPLOYMENT_PROJECT_ID, DP.NAME, DE.ENVIRONMENT_ID, DE.NAME, DR.DEPLOYMENT_RESULT_ID, DR.VERSION_NAME from DEPLOYMENT_PROJECT as DP join DEPLOYMENT_ENVIRONMENT as DE on DE.PACKAGE_DEFINITION_ID = DP.DEPLOYMENT_PROJECT_ID join DEPLOYMENT_RESULT as DR on DR.ENVIRONMENT_ID = DE.ENVIRONMENT_ID;

In response, you should get the following:

DEPLOYMENT_PROJECT_ID

NAME

ENVIRONMENT_ID

NAME

DEPLOYMENT_RESULT_ID

VERSION_NAME

720897

Deployment

851969

Environment

6881281

release-1

720897

Deployment

851969

Environment

6881282

release-2

From the DEPLOYMENT_PROJECT_ID, ENVIRONMENT_ID and DEPLOYMENT_RESULT_ID from spreadsheet above, we identify the DeploymentResult log file in Bamboo's home directory structure:

<bamboo-home>/xml-data/builds/720897-851969/download-data/build_logs/720897-851969-6881281.log

<bamboo-home>/xml-data/builds/<DEPLOYMENT_PROJECT_ID>-<ENVIRONMENT_ID>/download-data/build_logs/<DEPLOYMENT_PROJECT_ID>-<ENVIRONMENT_ID><DEPLOYMENT_RESULT_ID>

Updated on April 10, 2025

Still need help?

The Atlassian Community is here for you.