Class AliasProvider

    • Constructor Detail

      • AliasProvider

        public AliasProvider()
    • Method Detail

      • validateAlias

        public static FormValidation validateAlias​(String aliasCandidate)
        Validate custom alias Aliases that does not conform to this contract will not be attached to the build. AliasProvider implementations might use this method from their doCheckXXX methods to provide early feedback. This implementation ensures that an alias can not possibly collide with the build number (it must not be an integer) and buildin permalink ("lastBuild", "lastSuccessfulBuild", etc.).
        Returns:
        null if valid, FormValidation describing the cause otherwise.