By enabling build expiry for just a plan (described below), you override the global expiry settings that affect all plans. If you disable build expiry for a plan, that plan's build result data will never be automatically deleted from your Bamboo server. You can choose the build result data that will be kept for a plan and for how long this data will be kept (e.g. for reporting purposes), before Bamboo automatically deletes it. You can also delete the results of a plan build manually — see Deleting the results of a plan build. |
Configuring the expiry of build results for a plan
Before you begin:
- Ensure that you back up your build results data before its expiry date is reached.
To enable and configure the expiry of build result data for a particular plan:
- Navigate to the configuration for the desired plan, as described on Editing a plan's configuration.
- Click Miscellaneous to display the plan's current build expiry settings.
- Select the Override global build expiry configuration check box. The following fields will be displayed:
Setting Result Build results All build results data (including artifacts and build logs) are deleted. Artifacts Only user-defined artifacts are deleted from the build results. Build logs Only build logs are deleted from the build results. Expiry period Specifies the period (days, weeks or months) for which you want to keep build results.
E.g. specify '24 months' to keep all build results for the last two years.Minimum builds to keep Specifies the minimum number of build results you want to keep.
E.g. specify '50' to keep the latest 50 build results, even if they are older than the period specified with Expiry period.Labels to keep Specifies the build labels (not plan labels or job labels) applied to builds for which you want to keep build results, regardless of the Expiry period and Minimum builds to keep settings. Note that builds can be labelled either manually or automatically. - Click Save.
Note that the build expiry event is a global event that runs periodically, regardless of whether you disable or enable build expiry in your plans. When this event occurs, the build results for your plan will be expired according to the criteria specified in the settings above or globally. To configure the global event and global build expiry settings, please refer to Configuring global build results expiry.
Screenshot: Enabling Build Expiry
Disabling the expiry of build results for a plan
To disable expiry of the build result data for a particular plan:
- Navigate to the configuration for the desired plan, as described on Editing a plan's configuration.
- Click Miscellaneous.
- Select the Override global build expiry configuration check box.
- Enter '999999999 months' for the Expiry Period.
This is a workaround for this Bamboo issue (BAM-4270). Please vote for this issue, if you would like to see it implemented in Bamboo.
- Click Save.
Screenshot: Disabling Build Expiry
Attachments:





