Class MultipleOrJobRestriction
java.lang.Object
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.logic.MultipleOrJobRestriction
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobRestriction>
,Serializable
Implements "Or" condition with multiple entries.
- Since:
- 0.2
- Author:
- Oleg Nenashev
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canTake
(Queue.BuildableItem item) Check if theQueue
item can be taken.boolean
Methods inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
all, allDescriptors, getDescriptor
-
Constructor Details
-
MultipleOrJobRestriction
-
-
Method Details
-
getRestrictions
-
canTake
Description copied from class:JobRestriction
Check if theJob
can be executed according to the specifiedRun
. If the job cannot be executed, it will be aborted by the plugin.- Specified by:
canTake
in classJobRestriction
- Parameters:
run
- ARun
to be checked- Returns:
- true if the build can be executed
-
canTake
Description copied from class:JobRestriction
Check if theQueue
item can be taken. This method is being used to check if theNode
can take the specified job. If the job cannot be taken, Jenkins will try to launch the job on other nodes.- Specified by:
canTake
in classJobRestriction
- Parameters:
item
- An item to be checked- Returns:
- true if the node can take the item
-