Class WarningsRecorder
- java.lang.Object
-
- de.tracetronic.jenkins.plugins.ecutest.extension.warnings.WarningsRecorder
-
public class WarningsRecorder extends Object
Class for recording test file checks as Warnings NG issues.
-
-
Constructor Summary
Constructors Constructor Description WarningsRecorder(String displayName, String issueName, String issueFileName)
Instantiates a newWarningsRecorder
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
record(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
Records test file checks as Warnings NG issues.
-
-
-
Constructor Detail
-
WarningsRecorder
public WarningsRecorder(String displayName, String issueName, String issueFileName)
Instantiates a newWarningsRecorder
.- Parameters:
displayName
- the display name for all recorded issuesissueName
- the name for generating the issue idissueFileName
- 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 runworkspace
- the workspacelauncher
- the launcherlistener
- the listener- Returns:
true
if recording detects any issues with ERROR severity,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the build gets interrupted
-
-