/** * 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 */ public void buildEnvironment(Run<?,?> build, EnvVars env) { if (build instanceof AbstractBuild) { buildEnvVars((AbstractBuild) build, env); } // else do not know how to do it }
/** @deprecated Use {@link #buildEnvironment(Run, EnvVars)} instead. */ @Deprecated public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env) { if (Util.isOverridden(ParameterValue.class, getClass(), "buildEnvironment", Run.class, EnvVars.class)) { buildEnvironment(build, env); } else { // for backward compatibility buildEnvVars(build,(Map<String,String>)env); } }
buildEnvVars(build, (EnvVars) env);
public void buildEnvVars(AbstractBuild<?, ?> build, EnvVars env) { for (ParameterValue p : parameters) { p.buildEnvVars(build, env); } }
public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env) { for (ParameterValue p : parameters) p.buildEnvVars(build,env); }
public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env) { for (ParameterValue p : parameters) p.buildEnvVars(build,env); }
public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env) { for (ParameterValue p : parameters) p.buildEnvVars(build,env); }
/** * 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. */ public void buildEnvVars(AbstractBuild<?, ?> build, EnvVars env) { // for backward compatibility buildEnvVars(build, (Map<String, String>) env); }
/** * 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. */ public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env) { // for backward compatibility buildEnvVars(build,(Map<String,String>)env); }
/** * 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. */ public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env) { // for backward compatibility buildEnvVars(build,(Map<String,String>)env); }
/** * 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. */ public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env) { // for backward compatibility buildEnvVars(build,(Map<String,String>)env); }
/** * 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 */ public void buildEnvironment(Run<?,?> build, EnvVars env) { if (build instanceof AbstractBuild) { buildEnvVars((AbstractBuild) build, env); } // else do not know how to do it }
@Override public void buildEnvVars(AbstractBuild<?, ?> build, EnvVars env) { if (!(build instanceof Promotion)) { throw new IllegalStateException ("Wrong build type. Expected a Promotion, but got "+build.getClass()); } List<ParameterValue> params = ((Promotion) build).getParameterValues(); if (params != null) { for (ParameterValue value : params) { value.buildEnvVars(build, env); } } } }
/** @deprecated Use {@link #buildEnvironment(Run, EnvVars)} instead. */ @Deprecated public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env) { if (Util.isOverridden(ParameterValue.class, getClass(), "buildEnvironment", Run.class, EnvVars.class)) { buildEnvironment(build, env); } else { // for backward compatibility buildEnvVars(build,(Map<String,String>)env); } }
if (env instanceof EnvVars && Util.isOverridden(ParameterValue.class,getClass(),"buildEnvVars", AbstractBuild.class,EnvVars.class)) buildEnvVars(build,(EnvVars)env);
/** * 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> <strike>Environment variables should 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.)</strike> * (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 #buildEnvVars(AbstractBuild, EnvVars)} * instead. */ public void buildEnvVars(AbstractBuild<?, ?> build, Map<String, String> env) { if (env instanceof EnvVars && Util.isOverridden(ParameterValue.class, getClass(), "buildEnvVars", AbstractBuild.class, EnvVars.class)) // if the subtype already derives buildEnvVars(AbstractBuild,Map), then delegate to it { buildEnvVars(build, (EnvVars) env); } // otherwise no-op by default }
if (env instanceof EnvVars && Util.isOverridden(ParameterValue.class,getClass(),"buildEnvVars", AbstractBuild.class,EnvVars.class)) buildEnvVars(build,(EnvVars)env);
if (env instanceof EnvVars && Util.isOverridden(ParameterValue.class,getClass(),"buildEnvVars", AbstractBuild.class,EnvVars.class)) buildEnvVars(build,(EnvVars)env);
buildEnvVars(build, (EnvVars) env);
for (ParameterValue value : paramsAction.getParameters()) if (!value.isSensitive()) value.buildEnvVars(build, env); buildState.setParameters(env);