Package jenkins.tasks.filters.impl
Class RetainVariablesLocalRule
java.lang.Object
jenkins.tasks.filters.impl.RetainVariablesLocalRule
- All Implemented Interfaces:
ExtensionPoint,Describable<EnvVarsFilterLocalRule>,Serializable,EnvVarsFilterLocalRule,EnvVarsFilterRule
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class RetainVariablesLocalRule
extends Object
implements EnvVarsFilterLocalRule
Local rule that removes all the non-retained variables for that step.
- Since:
- 2.246
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilter(EnvVars envVars, EnvVarsFilterRuleContext context) In case the filter detects something that must stop the build, it must throw aEnvVarsFilterException.booleanWhether to retain characteristic environment variables.voidsetProcessVariablesHandling(RetainVariablesLocalRule.ProcessVariablesHandling processVariablesHandling) voidsetRetainCharacteristicEnvVars(boolean retainCharacteristicEnvVars) voidsetVariables(String variables) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jenkins.tasks.filters.EnvVarsFilterLocalRule
getDescriptorMethods inherited from interface jenkins.tasks.filters.EnvVarsFilterRule
getDisplayName
-
Constructor Details
-
RetainVariablesLocalRule
@DataBoundConstructor public RetainVariablesLocalRule()
-
-
Method Details
-
setVariables
-
getVariables
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @NonNull public String getVariables() -
setRetainCharacteristicEnvVars
@DataBoundSetter public void setRetainCharacteristicEnvVars(boolean retainCharacteristicEnvVars) -
isRetainCharacteristicEnvVars
public boolean isRetainCharacteristicEnvVars()Whether to retain characteristic environment variables.- Returns:
- true if and only if to retain characteristic environment variables.
- See Also:
-
filter
Description copied from interface:EnvVarsFilterRuleIn case the filter detects something that must stop the build, it must throw aEnvVarsFilterException. This method may be executed on agents through a remoting channel.- Specified by:
filterin interfaceEnvVarsFilterRule
-
getProcessVariablesHandling
-
setProcessVariablesHandling
@DataBoundSetter public void setProcessVariablesHandling(RetainVariablesLocalRule.ProcessVariablesHandling processVariablesHandling)
-