Killing old processes and files from your Bamboo agents before any build
Kill old processes
Using a regular expression, you can look for specific strings on the path, command name or arguments.
It works on Windows and Linux, possibly other OS should work as well.
Delete old build directories and files
Does your build create temporary files which could affect the next build? Maybe VNC files, .gitconfig, Bamboo working building directories.
It's possible to now to delete those files before any build.
Delete artifacts from Maven local repository
Do you need to delete all snapshots from your maven local repository?
Is your maven local repository getting bigger and bigger on each build, eating all your disk space? Not a problem anymore.
Exemple of execution on Windows