jenkinsci/parameterized-trigger-plugin — pull request #25 by ndeloof (2012-09-26 22:56:02+00:00)
Title: capture build environment to expand variables in triggered job parameters

as downstream job is triggered by dependency graph, build.getEnvironment is called to compute parameters AFTER AbstractBuild.clean has reset buildEnvironment, so that node properties and others are lost.

This pull request add a build action to capture the build environment, and uses it to compute parameters, as it does when using the "legacy mode" to directly schedule the downstream jobs from publisher