Package jenkins.model
Class ProjectNamingStrategy.PatternProjectNamingStrategy
java.lang.Object
jenkins.model.ProjectNamingStrategy
jenkins.model.ProjectNamingStrategy.PatternProjectNamingStrategy
- All Implemented Interfaces:
ExtensionPoint
,Describable<ProjectNamingStrategy>
,Serializable
- Enclosing class:
- ProjectNamingStrategy
public static final class ProjectNamingStrategy.PatternProjectNamingStrategy
extends ProjectNamingStrategy
implements Serializable
Naming strategy which allows the admin to define a pattern a job's name has to follow.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Nested classes/interfaces inherited from class jenkins.model.ProjectNamingStrategy
ProjectNamingStrategy.DefaultProjectNamingStrategy, ProjectNamingStrategy.PatternProjectNamingStrategy, ProjectNamingStrategy.ProjectNamingStrategyDescriptor
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class jenkins.model.ProjectNamingStrategy
DEFAULT_NAMING_STRATEGY
-
Constructor Summary
ConstructorDescriptionPatternProjectNamingStrategy
(String namePattern, boolean forceExistingJobs) Deprecated.PatternProjectNamingStrategy
(String namePattern, String description, boolean forceExistingJobs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when creating a new job.boolean
This flag can be used to force existing jobs to be migrated to a new naming strategy - if this method returns true, the naming will be enforced at every config change.Methods inherited from class jenkins.model.ProjectNamingStrategy
all, checkName, getDescriptor
-
Constructor Details
-
Method Details
-
checkName
Description copied from class:ProjectNamingStrategy
Called when creating a new job.- Overrides:
checkName
in classProjectNamingStrategy
- Parameters:
name
- the name given from the UI
-
getNamePattern
-
getDescription
- Since:
- 1.533
-
isForceExistingJobs
public boolean isForceExistingJobs()Description copied from class:ProjectNamingStrategy
This flag can be used to force existing jobs to be migrated to a new naming strategy - if this method returns true, the naming will be enforced at every config change. Iffalse
is returned, only new jobs have to follow the strategy.- Overrides:
isForceExistingJobs
in classProjectNamingStrategy
- Returns:
true
if existing jobs should be enforced to confirm to the naming standard.
-