Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Page Properties


Description

Set the global build expiry options by using one or more field parameters. Defaults to no expiry processing. See administration expiry panel for details on how automatic expiry works. Use field names results (includes artifacts and logs), artifacts, and logs to control what will be removed. Additional options are available with field names including expireAfter (in days), buildsToKeep (minimum builds to keep), maximumBuildsToKeep, deploymentsToKeep (minimum successful deployments to keep), and labelsToKeep (blank separated list). On Bamboo 7.1 or higher, anyDeploymentsToKeep can also be used to keep successful or unsuccessful deployments to keep. Fields not set will be defaulted. Only a cron expression can be used for the schedule parameter and defaults to '0 0 0 ? * *' which is once a day at midnight.

Required Parameters

Optional Parameters

field, schedule

Type

Update

Category

System

Output Formats

Replacement Variables

Since Version9.3

Examples

setExpiryOptions


Related How To's

Cql query
showLastModifierColumnfalse
showQueryfalse
showCreatorColumnfalse
showLastModifiedDateColumnfalse
cqlQuerylabel = 'cli-action-setExpiryOptions' and label = 'cli-howto' and label = 'cli-product-bamboo' and space = SUPPORT
showCreatedDateColumnfalse
showTypeColumnfalse
showSpaceColumnfalse
showLabelsColumnfalse