Package jenkins.branch
Class RateLimitBranchProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<BranchProperty>
jenkins.branch.BranchProperty
jenkins.branch.RateLimitBranchProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<BranchProperty>
Deprecated.
A branch property that limits how often a specific branch can be built.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.Our descriptorstatic classDeprecated.static classDeprecated.This does the work of blocking builds while the throttle is enforced.static classDeprecated.This class is to work around some annoying "features" of f:optionalBlockNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionRateLimitBranchProperty(int count, String durationName) Deprecated.RateLimitBranchProperty(int count, String durationName, boolean userBoost) Deprecated.Constructor for stapler. -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Deprecated.Gets the maximum builds within the duration.Deprecated.Gets the duration.booleanDeprecated.Gets the user boost setting.<P extends Job<P,B>, B extends Run<P, B>>
JobDecorator<P,B> jobDecorator(Class<P> jobType) Deprecated.Returns aJobDecoratorfor the specific job type.Methods inherited from class jenkins.branch.BranchProperty
asArrayList, decorator, decorator, getDescriptor
-
Constructor Details
-
RateLimitBranchProperty
Deprecated.Constructor for stapler.- Parameters:
count- the maximum builds within the duration.durationName- the name of the duration.
-
RateLimitBranchProperty
@DataBoundConstructor public RateLimitBranchProperty(int count, String durationName, boolean userBoost) Deprecated.Constructor for stapler.- Parameters:
count- the maximum builds within the duration.durationName- the name of the duration.userBoost-trueto allow user submitted jobs to ignore the rate limits.
-
-
Method Details
-
getCount
public int getCount()Deprecated.Gets the maximum builds within the duration.- Returns:
- the maximum builds within the duration.
-
getDurationName
Deprecated.Gets the duration.- Returns:
- the duration.
-
isUserBoost
public boolean isUserBoost()Deprecated.Gets the user boost setting.- Returns:
- the user boost setting.
-
jobDecorator
Deprecated.Returns aJobDecoratorfor the specific job type.- Overrides:
jobDecoratorin classBranchProperty- Type Parameters:
P- the type of job.B- the type of run of the job.- Parameters:
jobType- the job class.- Returns:
- a
JobDecoratorornullif none appropriate to this type of job.
-
JobPropertyStep.HideSuperfluousBranchPropertiesfor Pipeline.