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 ForensicsJobActionprotected final RepositoryStatisticsXmlStreamprotected StringintintReturns the detail view for the forensics data for all Stapler requests.intintprotected ObjecttoString()Methods inherited from class io.jenkins.plugins.util.BuildAction
getBuildActionFromHistoryStartingFrom, getOwner, getProjectActions, getResult, onAttached, onLoad 
- 
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:
 readResolvein classio.jenkins.plugins.util.BuildAction<RepositoryStatistics>
 - 
createProjectAction
- Specified by:
 createProjectActionin classio.jenkins.plugins.util.BuildAction<RepositoryStatistics>
 - 
createXmlStream
- Specified by:
 createXmlStreamin classio.jenkins.plugins.util.BuildAction<RepositoryStatistics>
 - 
getBuildResultBaseName
- Specified by:
 getBuildResultBaseNamein classio.jenkins.plugins.util.BuildAction<RepositoryStatistics>
 - 
getIconFileName
- Specified by:
 getIconFileNamein interfaceAction
 - 
getDisplayName
- Specified by:
 getDisplayNamein interfaceAction- Specified by:
 getDisplayNamein interfaceModelObject
 - 
getTarget
Returns the detail view for the forensics data for all Stapler requests.- Specified by:
 getTargetin interfaceorg.kohsuke.stapler.StaplerProxy- Returns:
 - the detail view for the forensics data
 
 - 
getUrlName
- Specified by:
 getUrlNamein interfaceAction
 - 
getNumberOfFiles
public int getNumberOfFiles() - 
getMiningDurationSeconds
public int getMiningDurationSeconds() - 
getTotalLinesOfCode
public int getTotalLinesOfCode() - 
getTotalChurn
public int getTotalChurn() - 
getCommitStatistics
 - 
getScmKey
 - 
toString
 
 -