Klasse CoverageReporter
java.lang.Object
io.jenkins.plugins.coverage.model.CoverageReporter
Transforms the old model to the new model and invokes all steps that work on the new model. Currently, only the
source code painting and copying has been moved to this new reporter class.
- Autor:
- Ullrich Hafner
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
run
(CoverageResult rootResult, Run<?, ?> build, FilePath workspace, TaskListener listener, HealthReport healthReport, String scm, Set<String> sourceDirectories, String sourceCodeEncoding, io.jenkins.plugins.prism.SourceCodeRetention sourceCodeRetention) Transforms the old model to the new model and invokes all steps that work on the new model.
-
Konstruktordetails
-
CoverageReporter
public CoverageReporter()
-
-
Methodendetails
-
run
public void run(CoverageResult rootResult, Run<?, ?> build, FilePath workspace, TaskListener listener, HealthReport healthReport, String scm, Set<String> sourceDirectories, String sourceCodeEncoding, io.jenkins.plugins.prism.SourceCodeRetention sourceCodeRetention) throws InterruptedExceptionTransforms the old model to the new model and invokes all steps that work on the new model. In the final step, a newCoverageBuildAction
will be attached to the build.- Parameter:
rootResult
- the root result obtained from the old coverage APIbuild
- the build that owns these resultsworkspace
- the workspace on the agent that provides access to the source code fileslistener
- loggerhealthReport
- health reportscm
- the SCM which is used for calculating the code delta to a reference buildsourceDirectories
- the source directories that have been configured in the associated jobsourceCodeEncoding
- the encoding of the source code filessourceCodeRetention
- the source code retention strategy- Löst aus:
InterruptedException
- if the build has been aborted
-