Class ReportScanningTool.ReportScanningToolDescriptor

    • Method Detail

      • doFillReportEncodingItems

        @POST
        public ComboBoxModel doFillReportEncodingItems​(@AncestorInPath
                                                       AbstractProject<?,​?> project)
        Returns a model with all available charsets.
        Parameters:
        project - the project that is configured
        Returns:
        a model with all available charsets
      • doCheckReportEncoding

        @POST
        public FormValidation doCheckReportEncoding​(@AncestorInPath
                                                    AbstractProject<?,​?> project,
                                                    @QueryParameter
                                                    String reportEncoding)
        Performs on-the-fly validation of the character encoding.
        Parameters:
        project - the project that is configured
        reportEncoding - the character encoding
        Returns:
        the validation result
      • doCheckPattern

        @POST
        public FormValidation doCheckPattern​(@AncestorInPath
                                             AbstractProject<?,​?> project,
                                             @QueryParameter
                                             String pattern)
        Performs on-the-fly validation on the ant pattern for input files.
        Parameters:
        project - the project that is configured
        pattern - the file pattern
        Returns:
        the validation result
      • hasDefaultPattern

        public boolean hasDefaultPattern()
        Indicates whether or not this scanning tool has a default pattern. If it does, it means it can never scan the console, but also means that we don't require a user-specified pattern as we have a usable default.
        Returns:
        true if getPattern() returns a non-empty string.
      • canScanConsoleLog

        public boolean canScanConsoleLog()
        Returns whether this parser can scan the console log. Typically, only line based parsers can scan the console log. XML parsers should always parse a given file only.
        Returns:
        the parser to use
      • getPattern

        public String getPattern()
        Returns the default filename pattern for this tool. Override if your typically works on a specific file. Note: if you provide a default pattern then it is not possible to scan Jenkins console log of a build.
        Returns:
        the default pattern