Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How is deployed artifacts handled by expiration logic?

I have a number of artifacts (unit test results, system test results) in build plans and I am using deployment plans.

Will the artifacts in the build plans expire if an artifact from that specific build is deployed to any environment?

I would like Bamboo to never expire the build results that are actively deployed.

1 answer

0 votes

Hello Johan,

According to this document the artifact expiry date is calculated this way:

  • If there is no release associated with the build result, then use the build result creation date.
  • Otherwise, if the build result has never been deployed, then use the creation date for the latest release that refers to it.
  • Otherwise, use the creation date for the latest deployment.

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).

In that same document it is also mentioned that if you want to keep specific build results, regardless of expiry date, you can add labels to your builds and specify these labels in the Keep builds with the following labels field.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,
Felipe Kraemer


I'm reading the documentation, and I still do not feel assured that that following is true:

"If a release is deployed and deployment expiration is set to keep latest 2 deployed builds, is the build that the release is created from protected from being removed?"

Can you please confirm Yes or No to this question.


Hi Felipe. Are keep forever labelled builds counted in the minimum builds to keep count? 

Example: My keep forever builds are 15 at present and my minimum builds to keep value is configured 20. So, can I have only 5 (20-15) builds besides keep forever builds or can I have 20 minimum additional builds?   

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

967 views 3 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you