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

bamboo different force clean build option and clean working directory task

JooHyun Park November 23, 2022

Hi

I wondering different force clean build option and clean working directory task in bamboo.

What's the difference between clearing the workspace and checking out the source again before build both options?
Is the difference that the force clean build option is used only in the task where the source is checked out, and the clean workspace task can adjust the task order arbitrarily?

 

Also, I wonder if the Clean working directory after each build option on the other tab is the best way to erase the build-dir workspace after build.

Thank you.

1 answer

1 accepted

1 vote
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 24, 2022

Hello @JooHyun Park

When you clean the working space after a build or before starting a new Job, Bamboo will delete everything that was generated by the last run, including downloaded files and created files -- That includes binaries, accessory files, temporary content, etc. 

By checking out the source code you have no means to guarantee that any content that is still available from previous builds in the folder will be deleted.

Bamboo leaves the content there to help developers troubleshoot any build issues, otherwise, it would be hard to figure out what happened after a failed build without proper evidence.

You can choose to delete the content before or after each build, the decision on which method will depend if you need the build content to be available in case of any required troubleshooting, as stated in the previous paragraph.

Thank you,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events