public class BuildResultProcessor
extends java.lang.Object
| Constructor and Description | 
|---|
BuildResultProcessor(Logger logger,
                    hudson.model.Run<?,?> build,
                    hudson.FilePath workspace,
                    Differential diff,
                    DifferentialClient diffClient,
                    java.lang.String phid,
                    CodeCoverageMetrics coverageResult,
                    java.lang.String buildUrl,
                    boolean preserveFormatting,
                    CoverageCheckSettings coverageCheckSettings)  | 
| Modifier and Type | Method and Description | 
|---|---|
hudson.model.Result | 
getBuildResult()  | 
java.util.Map<java.lang.String,java.lang.String> | 
getCoverage()  | 
LintResults | 
getLintResults()  | 
UnitResults | 
getUnitResults()  | 
void | 
processBuildResult(boolean commentOnSuccess,
                  boolean commentWithConsoleLinkOnFailure)
Add build result data into the commenter 
 | 
boolean | 
processHarbormaster(boolean sendPartialResults)
Send Harbormaster result to Phabricator 
 | 
void | 
processLintResults(java.lang.String lintFile,
                  java.lang.String lintFileSize)
Fetch remote lint violations from the build workspace and process 
 | 
boolean | 
processParentCoverage(UberallsClient uberalls)
Fetch parent coverage data from Uberalls, if available 
 | 
void | 
processRemoteComment(java.lang.String commentFile,
                    java.lang.String commentSize)
Fetch a remote comment from the build workspace 
 | 
void | 
processUnitResults(UnitTestProvider unitProvider)
Process unit test results from the test run 
 | 
void | 
sendComment(boolean commentWithConsoleLinkOnFailure)
Send a comment to the differential, if present 
 | 
public BuildResultProcessor(Logger logger, hudson.model.Run<?,?> build, hudson.FilePath workspace, Differential diff, DifferentialClient diffClient, java.lang.String phid, CodeCoverageMetrics coverageResult, java.lang.String buildUrl, boolean preserveFormatting, CoverageCheckSettings coverageCheckSettings)
public hudson.model.Result getBuildResult()
public boolean processParentCoverage(UberallsClient uberalls)
uberalls - the client to the Uberalls instancepublic void processBuildResult(boolean commentOnSuccess,
                               boolean commentWithConsoleLinkOnFailure)
commentOnSuccess - whether a "success" should trigger a commentcommentWithConsoleLinkOnFailure - whether a failure should trigger a console linkpublic void processRemoteComment(java.lang.String commentFile,
                                 java.lang.String commentSize)
commentFile - the path pattern of the filecommentSize - the maximum number of bytes to read from the remote filepublic void processLintResults(java.lang.String lintFile,
                               java.lang.String lintFileSize)
lintFile - the path pattern of the filelintFileSize - maximum number of bytes to read from the remote filepublic void sendComment(boolean commentWithConsoleLinkOnFailure)
commentWithConsoleLinkOnFailure - whether we should provide a console link on failurepublic boolean processHarbormaster(boolean sendPartialResults)
public void processUnitResults(UnitTestProvider unitProvider)
unitProvider - a provider for unit test resultspublic java.util.Map<java.lang.String,java.lang.String> getCoverage()
public UnitResults getUnitResults()
public LintResults getLintResults()