Uses of Class
hudson.EnvVars
Packages that use EnvVars
Package
Description
Core object model that are bound to URLs via stapler, rooted at
Jenkins.Code related to agents.
Other miscellaneous utility code
-
Uses of EnvVars in hudson
Modifier and TypeMethodDescriptionstatic EnvVarsEnvVars.createCookie()Creates a magic cookie that can be used as the model environment variable when we later kill the processes.static EnvVarsEnvVars.getRemote(hudson.remoting.VirtualChannel channel) Obtains the environment variables of a remote peer.EnvVars.overrideAll(Map<String, String> all) Overrides all values in the map by the given map.EnvVars.overrideExpandingAll(Map<String, String> all) Overrides all values in the map by the given map.Modifier and TypeMethodDescriptionfinal LauncherLauncher.decorateByEnv(EnvVars _env) Returns a decoratedLauncherthat automatically adds the specified environment variables. -
Uses of EnvVars in hudson.model
Methods in hudson.model that return EnvVarsModifier and TypeMethodDescriptionComputer.buildEnvironment(TaskListener listener) Creates an environment variable override to be used for launching processes on this node.Job.getCharacteristicEnvVars()Builds up the environment variable map that's sufficient to identify a process as ours.final EnvVarsRun.getCharacteristicEnvVars()Builds up the environment variable map that's sufficient to identify a process as ours.AbstractBuild.getEnvironment(TaskListener log) AbstractProject.getEnvironment(Node node, TaskListener listener) Computer.getEnvironment()Returns cached environment variables (copy to prevent modification) for the JVM on this computer.Job.getEnvironment(Node node, TaskListener listener) Creates an environment variable override for launching processes for this project.Run.getEnvironment()Deprecated.Run.getEnvironment(TaskListener listener) Returns the map that contains environmental variables to be used for launching processes for this build.Methods in hudson.model with parameters of type EnvVarsModifier and TypeMethodDescriptionvoidBooleanParameterValue.buildEnvironment(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.default voidEnvironmentContributingAction.buildEnvironment(Run<?, ?> run, EnvVars env) Called byRunto allow plugins to contribute environment variables.voidFileParameterValue.buildEnvironment(Run<?, ?> build, EnvVars env) Exposes the originalFileName as an environment variable.voidParametersAction.buildEnvironment(Run<?, ?> run, EnvVars env) voidParameterValue.buildEnvironment(Run<?, ?> build, EnvVars env) Adds environmental variables for the builds to the given map.voidPasswordParameterValue.buildEnvironment(Run<?, ?> build, EnvVars env) voidRunParameterValue.buildEnvironment(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.voidStringParameterValue.buildEnvironment(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.voidEnvironmentContributor.buildEnvironmentFor(Job j, EnvVars envs, TaskListener listener) Contributes environment variables used for a job.voidEnvironmentContributor.buildEnvironmentFor(Run r, EnvVars envs, TaskListener listener) Contributes environment variables used for a build.default voidEnvironmentContributingAction.buildEnvVars(AbstractBuild<?, ?> build, EnvVars env) Deprecated.voidJDK.buildEnvVars(EnvVars env) Sets PATH and JAVA_HOME from this JDK.voidParameterValue.buildEnvVars(AbstractBuild<?, ?> build, EnvVars env) Deprecated.UseParameterValue.buildEnvironment(Run, EnvVars)instead.static EnvironmentCreatesEnvironmentimplementation that just sets the variables as given in the parameter.EnvironmentSpecific.forEnvironment(EnvVars environment) Returns a specialized copy of T for functioning in the given environment.JDK.forEnvironment(EnvVars environment) -
Uses of EnvVars in hudson.slaves
Methods in hudson.slaves that return EnvVarsMethods in hudson.slaves with parameters of type EnvVarsModifier and TypeMethodDescriptionvoidEnvironmentVariablesNodeProperty.buildEnvVars(EnvVars env, TaskListener listener) voidNodeProperty.buildEnvVars(EnvVars env, TaskListener listener) Creates environment variable override for launching child processes in this node. -
Uses of EnvVars in hudson.tasks
Methods in hudson.tasks with parameters of type EnvVarsModifier and TypeMethodDescriptionprotected voidMaven.buildEnvVars(EnvVars env, Maven.MavenInstallation mi) Build up the environment variables toward the Maven launch.voidMaven.MavenInstallation.buildEnvVars(EnvVars env) Maven.MavenInstallation.forEnvironment(EnvVars environment) voidArtifactArchiver.perform(Run<?, ?> build, FilePath ws, EnvVars environment, Launcher launcher, TaskListener listener) voidFingerprinter.perform(Run<?, ?> build, FilePath workspace, EnvVars environment, Launcher launcher, TaskListener listener) -
Uses of EnvVars in hudson.tools
Methods in hudson.tools with parameters of type EnvVarsModifier and TypeMethodDescriptionvoidToolInstallation.buildEnvVars(EnvVars env) Expose any environment variables that this tool installation wants the build to see.ToolInstallation.translate(Node node, EnvVars envs, TaskListener listener) Performs a necessary variable/environment/context expansion. -
Uses of EnvVars in hudson.util
Methods in hudson.util that return EnvVarsModifier and TypeMethodDescriptionabstract EnvVarsProcessTree.OSProcess.getEnvironmentVariables()Obtains the environment variables of this process.ProcessTreeRemoting.IOSProcess.getEnvironmentVariables() -
Uses of EnvVars in jenkins.model
Methods in jenkins.model with parameters of type EnvVarsModifier and TypeMethodDescriptionvoidCoreEnvironmentContributor.buildEnvironmentFor(Job j, EnvVars env, TaskListener listener) voidCoreEnvironmentContributor.buildEnvironmentFor(Run r, EnvVars env, TaskListener listener) -
Uses of EnvVars in jenkins.tasks
Methods in jenkins.tasks with parameters of type EnvVarsModifier and TypeMethodDescriptiondefault voidSimpleBuildStep.perform(Run<?, ?> run, EnvVars env, TaskListener listener) Run this step, without a workspace context.default voidSimpleBuildStep.perform(Run<?, ?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) Run this step.voidSimpleBuildWrapper.setUp(SimpleBuildWrapper.Context context, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) Called when a segment of a build is started that is to be enhanced with this wrapper.voidSimpleBuildWrapper.setUp(SimpleBuildWrapper.Context context, Run<?, ?> build, TaskListener listener, EnvVars initialEnvironment) Called when a segment of a build is started that is to be enhanced with this wrapper. -
Uses of EnvVars in jenkins.tasks.filters
Methods in jenkins.tasks.filters with parameters of type EnvVarsModifier and TypeMethodDescriptionvoidEnvVarsFilterRule.filter(EnvVars envVars, EnvVarsFilterRuleContext context) In case the filter detects something that must stop the build, it must throw aEnvVarsFilterException.voidEnvVarsFilterRuleWrapper.filter(EnvVars envVars, Launcher launcher, TaskListener listener) -
Uses of EnvVars in jenkins.tasks.filters.impl
Methods in jenkins.tasks.filters.impl with parameters of type EnvVarsModifier and TypeMethodDescriptionvoidRetainVariablesLocalRule.filter(EnvVars envVars, EnvVarsFilterRuleContext context)
Run.getEnvironment(TaskListener)