Skip to content
Permalink
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
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/java/org/jvnet/jenkins/plugins/nodelabelparameter/LabelParameterValue.java
@@ -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 @@ public List<String> getNextLabels() {
* Exposes the name/value as an environment variable.
*/
@Override
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.