On Wed, Nov 2, 2016 at 4:48 PM, Jimmy Ray <
jimmy...@gmail.com> wrote:
> final EnvVars environment = build.getEnvironment(listener); ...
> environment.addLine(String.format("%s=%s", key, value));
Makes no sense. The result of `getEnvironment` is immutable—a new map
each time you call it.
If you have a block-scoped Pipeline `Step`, the equivalent of
`SimpleBuildWrapper.Context.env` would be to use
`EnvironmentExpander`. See `EnvStep` for a simple example.
There is intentionally no way to set build-wide variables, only within
a block scope.