Uses of Class
hudson.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 EnvVars
EnvVars.createCookie()
Creates a magic cookie that can be used as the model environment variable when we later kill the processes.static EnvVars
EnvVars.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 Launcher
Launcher.decorateByEnv
(EnvVars _env) Returns a decoratedLauncher
that automatically adds the specified environment variables. -
Uses of EnvVars in hudson.model
Modifier 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 EnvVars
Run.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.Modifier and TypeMethodDescriptionvoid
BooleanParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.default void
EnvironmentContributingAction.buildEnvironment
(Run<?, ?> run, EnvVars env) Called byRun
to allow plugins to contribute environment variables.void
FileParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Exposes the originalFileName as an environment variable.void
ParametersAction.buildEnvironment
(Run<?, ?> run, EnvVars env) void
ParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Adds environmental variables for the builds to the given map.void
PasswordParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) void
RunParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.void
StringParameterValue.buildEnvironment
(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable.void
EnvironmentContributor.buildEnvironmentFor
(Job j, EnvVars envs, TaskListener listener) Contributes environment variables used for a job.void
EnvironmentContributor.buildEnvironmentFor
(Run r, EnvVars envs, TaskListener listener) Contributes environment variables used for a build.default void
EnvironmentContributingAction.buildEnvVars
(AbstractBuild<?, ?> build, EnvVars env) Deprecated.void
JDK.buildEnvVars
(EnvVars env) Sets PATH and JAVA_HOME from this JDK.void
ParameterValue.buildEnvVars
(AbstractBuild<?, ?> build, EnvVars env) Deprecated.UseParameterValue.buildEnvironment(Run, EnvVars)
instead.static Environment
CreatesEnvironment
implementation 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
Modifier and TypeMethodDescriptionvoid
EnvironmentVariablesNodeProperty.buildEnvVars
(EnvVars env, TaskListener listener) void
NodeProperty.buildEnvVars
(EnvVars env, TaskListener listener) Creates environment variable override for launching child processes in this node. -
Uses of EnvVars in hudson.tasks
Modifier and TypeMethodDescriptionprotected void
Maven.buildEnvVars
(EnvVars env, Maven.MavenInstallation mi) Build up the environment variables toward the Maven launch.void
Maven.MavenInstallation.buildEnvVars
(EnvVars env) Maven.MavenInstallation.forEnvironment
(EnvVars environment) void
ArtifactArchiver.perform
(Run<?, ?> build, FilePath ws, EnvVars environment, Launcher launcher, TaskListener listener) void
Fingerprinter.perform
(Run<?, ?> build, FilePath workspace, EnvVars environment, Launcher launcher, TaskListener listener) -
Uses of EnvVars in hudson.tools
Modifier and TypeMethodDescriptionvoid
ToolInstallation.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
Modifier and TypeMethodDescriptionabstract EnvVars
ProcessTree.OSProcess.getEnvironmentVariables()
Obtains the environment variables of this process.ProcessTreeRemoting.IOSProcess.getEnvironmentVariables()
-
Uses of EnvVars in jenkins.model
Modifier and TypeMethodDescriptionvoid
CoreEnvironmentContributor.buildEnvironmentFor
(Job j, EnvVars env, TaskListener listener) void
CoreEnvironmentContributor.buildEnvironmentFor
(Run r, EnvVars env, TaskListener listener) -
Uses of EnvVars in jenkins.tasks
Modifier and TypeMethodDescriptiondefault void
SimpleBuildStep.perform
(Run<?, ?> run, EnvVars env, TaskListener listener) Run this step, without a workspace context.default void
SimpleBuildStep.perform
(Run<?, ?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) Run this step.void
SimpleBuildWrapper.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.void
SimpleBuildWrapper.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
Modifier and TypeMethodDescriptionvoid
EnvVarsFilterRule.filter
(EnvVars envVars, EnvVarsFilterRuleContext context) In case the filter detects something that must stop the build, it must throw aEnvVarsFilterException
.void
EnvVarsFilterRuleWrapper.filter
(EnvVars envVars, Launcher launcher, TaskListener listener) -
Uses of EnvVars in jenkins.tasks.filters.impl
Modifier and TypeMethodDescriptionvoid
RetainVariablesLocalRule.filter
(EnvVars envVars, EnvVarsFilterRuleContext context)
Run.getEnvironment(TaskListener)