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
Modifier and TypeClassDescriptionstatic class
Deprecated.Our descriptorstatic class
Deprecated.static class
Deprecated.This does the work of blocking builds while the throttle is enforced.static class
Deprecated.This class is to work around some annoying "features" of f:optionalBlockNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionRateLimitBranchProperty
(int count, String durationName) Deprecated.RateLimitBranchProperty
(int count, String durationName, boolean userBoost) Deprecated.Constructor for stapler. -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Deprecated.Gets the maximum builds within the duration.Deprecated.Gets the duration.boolean
Deprecated.Gets the user boost setting.<P extends Job<P,
B>, B extends Run<P, B>>
JobDecorator<P,B> jobDecorator
(Class<P> jobType) Deprecated.Returns aJobDecorator
for 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
-true
to 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 aJobDecorator
for the specific job type.- Overrides:
jobDecorator
in classBranchProperty
- Type Parameters:
P
- the type of job.B
- the type of run of the job.- Parameters:
jobType
- the job class.- Returns:
- a
JobDecorator
ornull
if none appropriate to this type of job.
-
JobPropertyStep.HideSuperfluousBranchProperties
for Pipeline.