Class WarningsRecorder
java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.extension.warnings.WarningsRecorder
Class for recording test file checks as Warnings NG issues.
-
Constructor Summary
ConstructorsConstructorDescriptionWarningsRecorder(String displayName, String issueName, String issueFileName) Instantiates a newWarningsRecorder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanrecord(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) Records test file checks as Warnings NG issues.
-
Constructor Details
-
WarningsRecorder
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 Details
-
record
public boolean record(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedExceptionRecords test file checks as Warnings NG issues.- Parameters:
run- the runworkspace- the workspacelauncher- the launcherlistener- the listener- Returns:
trueif recording detects any issues with ERROR severity,falseotherwise- Throws:
IOException- signals that an I/O exception has occurredInterruptedException- if the build gets interrupted
-