public interface EnvironmentContributingAction extends Action
Action
that contributes environment variables during a build.
For example, your Builder
can add an EnvironmentContributingAction
so that
the rest of the builders or publishers see some behavior changes.
Another use case is for you to submit a job with
EnvironmentContributingAction
s.
Run.getEnvironment(TaskListener)
,
BuildWrapper
Modifier and Type | Method and Description |
---|---|
default void |
buildEnvironment(Run<?,?> run,
EnvVars env)
Called by
Run to allow plugins to contribute environment variables. |
default void |
buildEnvVars(AbstractBuild<?,?> build,
EnvVars env)
Deprecated.
|
getDisplayName, getIconFileName, getUrlName
default void buildEnvironment(@NonNull Run<?,?> run, @NonNull EnvVars env)
Run
to allow plugins to contribute environment variables.run
- The calling build. Never null.env
- Environment variables should be added to this map.@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.ProtectedExternally.class) default void buildEnvVars(AbstractBuild<?,?> build, EnvVars env)
buildEnvironment(hudson.model.Run<?, ?>, hudson.EnvVars)
insteadAbstractBuild
to allow plugins to contribute environment variables.build
- The calling build. Never null.env
- Environment variables should be added to this map.Copyright © 2004–2021. All rights reserved.