code: @Deprecated
      public void buildEnvVars(AbstractBuild<?,?> build, Map<String,String> env) {
          if (env instanceof EnvVars) {
              if (Util.isOverridden(ParameterValue.class, getClass(), "buildEnvironment", Run.class, EnvVars.class)) {
                  // if the subtype already derives buildEnvironment, then delegate to it
                  buildEnvironment(build, (EnvVars) env);
              } else if (Util.isOverridden(ParameterValue.class, getClass(), "buildEnvVars", AbstractBuild.class, EnvVars.class)) {
                  buildEnvVars(build, (EnvVars) env);
              }
          }
          // otherwise no-op by default
      }
docs: Adds environmental variables for the builds to the given map.
  
  <p>
  This provides a means for a parameter to pass the parameter
  values to the build to be performed.
  
  <p>
  When this method is invoked, the map already contains the
  current "planned export" list. The implementation is
  expected to add more values to this map (or do nothing)
  
  <p>
  Formerly, environment variables would be by convention all upper case.
  (This is so that a Windows/Unix heterogeneous environment
  won't get inconsistent result depending on which platform to
  execute.) But now see {@link EnvVars} why upper casing is a bad idea.
  
  @param env
  never null.
  @param build
  The build for which this parameter is being used. Never null.
  @deprecated as of 1.344
  Use {@link #buildEnvironment(Run, EnvVars)} instead.