Skip to content

Commit

Permalink
[JENKINS-27718] Override ParameterValue.buildEnvironment()
Browse files Browse the repository at this point in the history
ParameterValue.buildEnvVars() was deprecated.  This fix is needed
for the workflow plugin.
  • Loading branch information
rodrigc committed Dec 28, 2015
1 parent dd63407 commit e41bc73
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -28,6 +28,7 @@
import hudson.EnvVars;
import hudson.model.AbstractBuild;
import hudson.model.ParameterValue;
import hudson.model.Run;
import hudson.util.VariableResolver;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.export.Exported;
Expand All @@ -51,7 +52,7 @@ public ListSubversionTagsParameterValue(String name, String tagsDir, String tag)
}

@Override
public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env) {
public void buildEnvironment(Run<?,?> build, EnvVars env) {
env.put(getName(), getTag());
}

Expand Down

0 comments on commit e41bc73

Please sign in to comment.