Because builds and deployments are separate entities in Atlassian Bamboo, their expiration policies vary in how they address cleanup and retention:
- The term "build" in Bamboo refers to the output of a continuous integration pipeline run, which generates artifacts or results according to the source code and defined jobs.
- Duration: Managed at the plan or worldwide level by the Build Retention Policy.
- It allows you to specify how long builds are stored (for example, keeping only the most recent "n" builds or builds that fall within a given time period).
- According to the guideline, older builds are automatically removed unless they are marked as favorites or specifically excluded from the cleanup.
- In Bamboo, the process of propagating artifacts from a build to other environments (such as staging or production) is known as deployment.
- Termination: Under the Deployment Version Retention Policy's control.
- Retention can be set up for deployment versions according to criteria like successful or unsuccessful deployments.
- Expiration policies enable fine-tuned control to maintain versions relevant to active environments and are unique to each deployment project.
- The main distinction in expiration is that build Expiration concentrates on clearing up logs and artifacts associated with CI builds.
- In deployment environments, deployment records and version histories are managed by deployment expiration.
Both are essential for preserving storage effectiveness and system performance while guaranteeing that important documents are always available.
Advance your career with a DevOps Master's Program—master CI/CD, automation, Kubernetes, and cloud technologies. Enroll now!