Class RegexNameRestriction
java.lang.Object
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.job.RegexNameRestriction
- All Implemented Interfaces:
ExtensionPoint,Describable<JobRestriction>,Serializable
Restricts the jobs execution by applying regular expressions to their names.
- Author:
- Oleg Nenashev
- See Also:
-
Nested Class Summary
Nested ClassesNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanTake(Queue.BuildableItem item) Check if theQueueitem can be taken.booleanbooleanbooleanMethods inherited from class com.synopsys.arc.jenkinsci.plugins.jobrestrictions.restrictions.JobRestriction
all, allDescriptors, getDescriptor
-
Constructor Details
-
RegexNameRestriction
-
-
Method Details
-
getRegexExpression
-
isCheckShortName
public boolean isCheckShortName() -
canTake
Description 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 classJobRestriction- Parameters:
item- An item to be checked- Returns:
- true if the node can take the item
-
canTake
Description 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 classJobRestriction- Parameters:
run- ARunto be checked- Returns:
- true if the build can be executed
-
canTake
-