code: public void buildEnvironment(Run<?,?> build, EnvVars env) {
          if (build instanceof AbstractBuild) {
              buildEnvVars((AbstractBuild) build, env);
          }
          // else do not know how to do it
      }
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)
  
  @param env
  never null.
  @param build
  The build for which this parameter is being used. Never null.
  @since 1.556