Package jenkins.model

Class ProjectNamingStrategy.DefaultProjectNamingStrategy

java.lang.Object
jenkins.model.ProjectNamingStrategy
jenkins.model.ProjectNamingStrategy.DefaultProjectNamingStrategy
All Implemented Interfaces:
ExtensionPoint, Describable<ProjectNamingStrategy>, Serializable
Enclosing class:
ProjectNamingStrategy

public static final class ProjectNamingStrategy.DefaultProjectNamingStrategy extends ProjectNamingStrategy implements Serializable
Default implementation which does not restrict the name to any form.
See Also:
  • Constructor Details

    • DefaultProjectNamingStrategy

      @DataBoundConstructor public DefaultProjectNamingStrategy()
  • Method Details

    • checkName

      public void checkName(String origName) throws Failure
      Description copied from class: ProjectNamingStrategy
      Called when creating a new job.
      Overrides:
      checkName in class ProjectNamingStrategy
      Parameters:
      origName - the name given from the UI
      Throws:
      Failure - if the user has to be informed about an illegal name, forces the user to change the name before submitting. The message of the failure will be presented to the user.