Class ForensicsBuildAction
java.lang.Object
io.jenkins.plugins.util.BuildAction<RepositoryStatistics>
io.jenkins.plugins.forensics.miner.ForensicsBuildAction
- All Implemented Interfaces:
Action
,ModelObject
,Serializable
,RunAction2
,SimpleBuildStep.LastBuildAction
,org.kohsuke.stapler.StaplerProxy
public class ForensicsBuildAction
extends io.jenkins.plugins.util.BuildAction<RepositoryStatistics>
implements org.kohsuke.stapler.StaplerProxy
Controls the life cycle of the forensics results in a job. This action persists the results of a build and displays a
summary on the build page. The actual visualization of the results is defined in the matching
summary.jelly
file. This action also provides access to the forensics details: these are rendered using a new view instance.- Author:
- Ullrich Hafner
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionForensicsBuildAction
(Run<?, ?> owner, RepositoryStatistics repositoryStatistics, int miningDurationSeconds, String scmKey, int number) Creates a new instance ofForensicsBuildAction
. -
Method Summary
Modifier and TypeMethodDescriptionprotected ForensicsJobAction
protected final RepositoryStatisticsXmlStream
protected String
int
int
Returns the detail view for the forensics data for all Stapler requests.int
int
protected Object
toString()
-
Constructor Details
-
ForensicsBuildAction
public ForensicsBuildAction(Run<?, ?> owner, RepositoryStatistics repositoryStatistics, int miningDurationSeconds, String scmKey, int number) Creates a new instance ofForensicsBuildAction
.- Parameters:
owner
- the associated build that created the statisticsrepositoryStatistics
- the statistics to persist with this actionminingDurationSeconds
- the duration of the mining operation in [s]scmKey
- key of the repositorynumber
- unique number of the results (used as part of the serialization file name)
-
-
Method Details
-
readResolve
- Overrides:
readResolve
in classio.jenkins.plugins.util.BuildAction<RepositoryStatistics>
-
createProjectAction
- Specified by:
createProjectAction
in classio.jenkins.plugins.util.BuildAction<RepositoryStatistics>
-
createXmlStream
- Specified by:
createXmlStream
in classio.jenkins.plugins.util.BuildAction<RepositoryStatistics>
-
getBuildResultBaseName
- Specified by:
getBuildResultBaseName
in classio.jenkins.plugins.util.BuildAction<RepositoryStatistics>
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getTarget
Returns the detail view for the forensics data for all Stapler requests.- Specified by:
getTarget
in interfaceorg.kohsuke.stapler.StaplerProxy
- Returns:
- the detail view for the forensics data
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
getNumberOfFiles
public int getNumberOfFiles() -
getMiningDurationSeconds
public int getMiningDurationSeconds() -
getTotalLinesOfCode
public int getTotalLinesOfCode() -
getTotalChurn
public int getTotalChurn() -
getCommitStatistics
-
getScmKey
-
toString
-