setExpiryOptions

⚠️This app will no longer be operational with the end of support of Bamboo version 9.6, planned for March 14, 2026. The app will no longer be available for purchase, use, or support, and the Marketplace listing will be archived. Learn more about Atlassian's End of Support Policy: https://confluence.atlassian.com/support/atlassian-end-of-support-policy-201851003.html

setExpiryOptions

See also: Actions

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 Version

9.3

Examples

 

Related How To's

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.