[Bamboo Cloud docs]
[Bamboo Knowledge Base]
Global expiry allows you to manage the timing for when build and deployment artifacts should be deleted from your Bamboo system.
You may want to consider doing this for the following reasons:
See this Atlassian blog post for a discussion of using build expiry and labels.
Global expiry applies to all build plans and deployment projects, and is generally the easiest way to manage artifacts expiry in Bamboo.
However, note that:
A Bamboo administrator can configure global expiry for both build and deployment artifacts as described below.
Ensure that you back up any build results data before their expiry date is reached.
To enable and configure global expiry:
Configure global expiry using the following settings:
Setting | Description |
---|---|
Complete build & deployment results... | All build results data (including artifacts and build logs), and deployment results and release artifacts, are deleted. |
Build and release artifacts | Only user-defined artifacts are deleted. |
Build and deployment result logs | Only build logs and deployment result logs are deleted. Note that log files smaller than 10MB are never expired. |
Expire after | Specifies the age (days, weeks or months) that build and deployment results must reach before they are deleted. For example, specify '24 months' to keep results created in the last two years. |
Minimum builds to keep | Specifies the minimum number of results you want to keep. For example, specify '50' to keep the latest 50 build results, even if they are older than the age specified with Expire after. |
Keep builds with the following labels | Specifies the build labels (not plan labels or job labels) applied to builds for which you want to keep build results, regardless of the Expire after and Minimum builds to keep settings. Note that builds can be labelled either manually or automatically. |
Minimum deployments to keep | Specifies the mininum number of successful deployments to keep, even if they are older than the age specified with Expire after. The minimum value is 2. |
The global expiry event runs periodically (as determined by the expiry Schedule), regardless of whether you disable or enable expiry for your build and deployment results. When this event occurs, your build and deployment results will be expired according to the global and plan settings you have made.
This section outlines how the ages of build or deployment results are calculated so as to determine when they should be expired.
The ages of build results, build logs, and deployment logs are simply calculated from their respective creation dates.
If the age of the build result or log is equal to or greater than the Expire after age, then it is deleted when the expiry event occurs (assuming build results or logs are configured for deletion).
Note that log files smaller than 10MB are never expired.
The ages of build and deployment artifacts are calculated as follows:
If the age of the build or deployment artifact is equal to or greater than the Expire after age, then it is deleted when the expiry event occurs (assuming artifacts are configured for deletion).