@Restricted(value=org.kohsuke.accmod.restrictions.Beta.class) public interface EnvVarsFilterGlobalRule extends Describable<EnvVarsFilterGlobalRule>, EnvVarsFilterRule, ExtensionPoint, Serializable
The job types can be filtered using isApplicable(Run, Object, Launcher)
The local rules are applied before the global ones.
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Method and Description |
---|---|
default Descriptor<EnvVarsFilterGlobalRule> |
getDescriptor()
Gets the descriptor for this instance.
|
boolean |
isApplicable(Run<?,?> run,
Object builder,
Launcher launcher) |
filter, getDisplayName
default Descriptor<EnvVarsFilterGlobalRule> getDescriptor()
Describable
Descriptor
is a singleton for every concrete Describable
implementation, so if a.getClass() == b.getClass()
then by default
a.getDescriptor() == b.getDescriptor()
as well.
(In rare cases a single implementation class may be used for instances with distinct descriptors.)
getDescriptor
in interface Describable<EnvVarsFilterGlobalRule>
boolean isApplicable(@CheckForNull Run<?,?> run, @NonNull Object builder, @NonNull Launcher launcher)
run
- The executing run that has one of its step requiring environment filtersbuilder
- Normally inherits from EnvVarsFilterableBuilder
but not forced to let reflection usage in pluginslauncher
- The launcher that will be used to run the commandCopyright © 2004–2021. All rights reserved.