Class WarningsRecorder


  • public class WarningsRecorder
    extends Object
    Class for recording test file checks as Warnings NG issues.
    • Constructor Detail

      • WarningsRecorder

        public WarningsRecorder​(String displayName,
                                String issueName,
                                String issueFileName)
        Instantiates a new WarningsRecorder.
        Parameters:
        displayName - the display name for all recorded issues
        issueName - the name for generating the issue id
        issueFileName - the file name pattern to search for issues
    • Method Detail

      • record

        public boolean record​(Run<?,​?> run,
                              FilePath workspace,
                              Launcher launcher,
                              TaskListener listener)
                       throws IOException,
                              InterruptedException
        Records test file checks as Warnings NG issues.
        Parameters:
        run - the run
        workspace - the workspace
        launcher - the launcher
        listener - the listener
        Returns:
        true if recording detects any issues with ERROR severity, false otherwise
        Throws:
        IOException - signals that an I/O exception has occurred
        InterruptedException - if the build gets interrupted