Where does Bamboo store its Global Expiry configuration?

Still need help?

The Atlassian Community is here for you.

Ask the community

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:

<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>

Last modified on Mar 5, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.