Skip to content

Commit

Permalink
[JENKINS-32209] Override ParameterValue.buildEnvironment()
Browse files Browse the repository at this point in the history
ParameterValue.buildEnvVars() is deprecated.  This fix is needed
for the workflow plugin.
  • Loading branch information
rodrigc committed Dec 28, 2015
1 parent 695fae7 commit c78a062
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit c78a062

Please sign in to comment.