You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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.
https://community.atlassian.com/t5/Bamboo-questions/Bamboo-shared-workspace/qaq-p/136784
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.