Where does Bamboo store its Global Expiry configuration?

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

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. 

ソリューション

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

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.