The bamboo workflow is:
checkout resource from git
{bamboo.build.dir}/workspacefetch target in {bamboo.build.dir}
/targetPlatform
clean
/buckminster.output
build Ergo
Since bamboo reuses jobs, there may already be a targetPlatform directory containing target pieces. When the target gets updated, the next time a job runs, the fetch target will pull down the new target to the existing targetPlatform directory. This can cause build issues. Since we are simply copying the target from a target build on the system, we should add a step in the workflow to clean out the target folder every time.