The behavior of many (build) tools and scripts is dependent on the environment variables passed to them. Unfortunately, environment variables are frequently difficult or impossible to see inside Jenkins.
It should be possible to have control over which environment variables are passed to specific build steps.
This would also allow having a UI for keeping processes around.