Class AndJobRestriction
java.lang.Object
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.logic.AndJobRestriction
- All Implemented Interfaces:
- ExtensionPoint,- Describable<JobRestriction>,- Serializable
Virtual job restriction, which allows to check two restrictions at once.
- Author:
- Oleg Nenashev
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestrictionDEFAULT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanTake(Queue.BuildableItem item) Check if theQueueitem can be taken.booleangetFirst()Methods inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestrictionall, allDescriptors, getDescriptor
- 
Constructor Details- 
AndJobRestriction
 
- 
- 
Method Details- 
getFirst
- 
getSecond
- 
canTakeDescription copied from class:JobRestrictionCheck if theQueueitem can be taken. This method is being used to check if theNodecan take the specified job. If the job cannot be taken, Jenkins will try to launch the job on other nodes.- Specified by:
- canTakein class- JobRestriction
- Parameters:
- item- An item to be checked
- Returns:
- true if the node can take the item
 
- 
canTakeDescription copied from class:JobRestrictionCheck if theJobcan be executed according to the specifiedRun. If the job cannot be executed, it will be aborted by the plugin.- Specified by:
- canTakein class- JobRestriction
- Parameters:
- run- A- Runto be checked
- Returns:
- true if the build can be executed
 
 
-