Class ReportScanningTool

    • Constructor Detail

      • ReportScanningTool

        public ReportScanningTool()
    • Method Detail

      • setPattern

        public void setPattern​(String pattern)
        Sets the Ant file-set pattern of files to work with. If the pattern is undefined then the console log is scanned.
        pattern - the pattern to use
      • getPattern

        public String getPattern()
      • createParser

        public abstract createParser()
        Returns a new parser to scan a log file and return the issues reported in such a file.
        the parser to use
      • setSkipSymbolicLinks

        public void setSkipSymbolicLinks​(boolean skipSymbolicLinks)
        Specify if file scanning skip traversal of symbolic links.
        skipSymbolicLinks - if symbolic links should be skipped during directory scanning.
      • getSkipSymbolicLinks

        public boolean getSkipSymbolicLinks()
      • setReportEncoding

        public void setReportEncoding​(String reportEncoding)
        Sets the encoding to use to read the log files that contain the warnings.
        reportEncoding - the encoding, e.g. "ISO-8859-1"
      • getReportEncoding

        public String getReportEncoding()
      • scan

        public scan​(Run<?,​?> run,
                                                  FilePath workspace,
                                                  Charset sourceCodeEncoding,
                                                  LogHandler logger)
        Description copied from class: Tool
        Scans the results of a build for issues. This method is invoked on Jenkins master. I.e., if a tool wants to process some build results it is required to run a MasterToSlaveCallable.
        Specified by:
        scan in class Tool
        run - the build
        workspace - the workspace of the build
        sourceCodeEncoding - the encoding to use to read source files
        logger - the logger
        the created report