Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to delete intermediate shared artifacts in Bamboo?

We generate certain artifacts in the initial code checkout stage of the build process (compiler fetch from git) and these are used for further stages. Since, they are shared artifacts used in the next stages, we have to add them as artifacts in the initial code checkout stage. 

After the build process is over, we do not wish to retain these intermediate shared artifacts from the initial stage. Is there any way to delete them in the final stage?

If not, then is it possible to manually delete these artifacts selectively from UI/API? Right now, selective artifacts deletion is not possible for a build in UI. All artifacts get deleted together.

1 answer

As a "workaround" you could create a ScriptTask and delete those artifacts by shell command. Surely not the answer you are looking for, sorry ;)

I don't think deletion of the shared artifacts on bamboo server via some shell/script is a good idea, considering that it is possible to identify the path of the shared artifact. 

As per an old post, it appears there is no way to delete the shared artifacts.

One should know the path of the artifact, since it is defined along with the artifact. It is then stored inside the <bamboo-home>/xml-data/build-dir/<JobKey> folder, where JobKey is the key of the Job where the artifact is used (ArtifactSubsription). But I don't know, if it is a good idea to delete the file on the file system, while bamboo holds a link in the Stage>Artifacts View

Suggest an answer

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

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

547 views 6 7
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