Skip to content
Browse files

[JENKINS-32209] Override ParameterValue.buildEnvironment()

ParameterValue.buildEnvVars() is deprecated.  This fix is needed
for the workflow plugin.
  • Loading branch information
rodrigc committed Dec 28, 2015
1 parent 695fae7 commit c78a062db28ca9fecbae2c70c161e013dc4e34af
@@ -12,6 +12,7 @@
import hudson.model.Node;
import hudson.model.ParameterDefinition;
import hudson.model.ParametersDefinitionProperty;
import hudson.model.Run;
import hudson.model.labels.LabelExpression;
import hudson.model.queue.SubTask;
import hudson.tasks.BuildWrapper;
@@ -159,7 +160,7 @@ private static String nameOrDefault(String name) {
* Exposes the name/value as an environment variable.
public void buildEnvVars(AbstractBuild<?, ?> build, EnvVars env) {
public void buildEnvironment(Run<?,?> build, EnvVars env) {
env.put(name, label);

0 comments on commit c78a062

Please sign in to comment.
You can’t perform that action at this time.