Class FailureCause.FailureCauseDescriptor

    • Constructor Detail

      • FailureCauseDescriptor

        public FailureCauseDescriptor()
    • Method Detail

      • getLastFailedBuildUrl

        public String getLastFailedBuildUrl()
        Returns:
        the URL to the last failed build of the project from whose page the Failure Cause Management page was entered.
      • setLastFailedBuildUrl

        public void setLastFailedBuildUrl()
        Set the URL of the last failed build of the project from whose page the Failure Cause Management page was entered.
      • doCheckDescription

        public FormValidation doCheckDescription​(@QueryParameter
                                                 String value)
        Form validation for FailureCause.description. Checks for not empty and not "Description..."
        Parameters:
        value - the form value.
        Returns:
        FormValidation.ok() if everything is well.
      • doCheckName

        public FormValidation doCheckName​(@QueryParameter
                                          String value,
                                          @QueryParameter
                                          String id)
        Form validation for FailureCause.name. Checks for not empty, not "New...", Jenkins.checkGoodName(String) and that it is unique based on the cache of existing causes.
        Parameters:
        value - the form value.
        id - The id (if changing an existing cause).
        Returns:
        FormValidation.ok() if everything is well.
      • doAutoCompleteCategories

        public AutoCompletionCandidates doAutoCompleteCategories​(@QueryParameter
                                                                 String value)
        Does the auto completion for categories, matching with any category already present in the knowledge base.
        Parameters:
        value - the input value.
        Returns:
        the AutoCompletionCandidates.