Overriding buildEnvironment so that this parameter type is usable in any Run, not just AbstractProject.
Needed for use from workflows.