Package jenkins.model

Class ProjectNamingStrategy.DefaultProjectNamingStrategy

    • Constructor Detail

      • DefaultProjectNamingStrategy

        @DataBoundConstructor
        public DefaultProjectNamingStrategy()
    • Method Detail

      • 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.