Where does Bamboo store its Global Expiry configuration?
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
Purpose
If you want to compare the global expiry configuration between two servers or want to make sure the same settings are migrated to a new server, it may be necessary to know how and where Bamboo stores its Global Expiry configuration.
Solution
The configuration is stored within <bamboo-home>/xml-data/configuration/administration.xml
. Any changes to this file manually will require a restart of Bamboo.
Here's an example snippet from the administration.xml
for expiry related settings:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<myBuildExpiryConfiguration>
<myPeriod>days</myPeriod>
<myDuration>0</myDuration>
<buildsToKeep>1</buildsToKeep>
<maxIgnoredLogSize>-1</maxIgnoredLogSize>
<expiryTypeNothing>false</expiryTypeNothing>
<expiryTypeResult>true</expiryTypeResult>
<expiryTypeArtifact>true</expiryTypeArtifact>
<expiryTypeBuildLog>true</expiryTypeBuildLog>
<labelsToKeep></labelsToKeep>
<cronExpression>0 0 0 ? * *</cronExpression>
<enabled>true</enabled>
</myBuildExpiryConfiguration>
<deploymentExpiryConfig>
<expiryEnabled>true</expiryEnabled>
<expiryTypes enum-type="com.atlassian.bamboo.deployments.expiry.DeploymentExpiryType">DEPLOYMENT_RESULT_LOG_EXPIRY,DEPLOYMENT_RESULT_EXPIRY,DEPLOYMENT_VERSION_ARTIFACTS_EXPIRY</expiryTypes>
<expiryPeriod>PT0S</expiryPeriod>
<deploymentsToKeep>2</deploymentsToKeep>
<maxIgnoredLogSize>-1</maxIgnoredLogSize>
</deploymentExpiryConfig>
Was this helpful?