# Multiple stages on same agent

**URL:** https://www.finalbuilder.com/forums/t/multiple-stages-on-same-agent/5444
**Category:** Discussion
**Created:** [December 23, 2015, 5:28am UTC](https://www.finalbuilder.com/forums/t/multiple-stages-on-same-agent/5444 "2015-12-23T05:28:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [December 23, 2015, 5:28am UTC](https://www.finalbuilder.com/forums/t/multiple-stages-on-same-agent/5444/1 "2015-12-23T05:28:46Z")

</div>

Hi guys,  
  
having multiples stages of a single configuration run on the same agent works as expected. But I’d like to know if the workspace is removed after a stage is finished or after a build is finished. Our configurations have two build stages: a debug build stage for unit tests and a release build stage. After the debug build stage is completed the release build stage is executed on the same agent. Does the release build stage start if an empty workspace directory?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 24, 2015, 4:18am UTC](https://www.finalbuilder.com/forums/t/multiple-stages-on-same-agent/5444/2 "2015-12-24T04:18:41Z")

</div>

By default, Continua CI does not clean the agent workspace between stages. You can force the workspace to be cleaned by using the workspace rules : [http://wiki.finalbuilder.com/display/continua/Workspace+Rules](http://wiki.finalbuilder.com/display/continua/Workspace+Rules)   
  
 Now that I think of it, we really should have a stage option to force clean the workspace, will add that to the todo.
