Klasse CommitStatisticsBuildAction
java.lang.Object
hudson.model.InvisibleAction
io.jenkins.plugins.forensics.miner.CommitStatisticsBuildAction
- Alle implementierten Schnittstellen:
Action
,ModelObject
,Serializable
,RunAction2
,SimpleBuildStep.LastBuildAction
public class CommitStatisticsBuildAction
extends InvisibleAction
implements SimpleBuildStep.LastBuildAction, RunAction2, Serializable
Controls the life cycle of the commit statistics 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.- Autor:
- Ullrich Hafner
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungCommitStatisticsBuildAction
(Run<?, ?> owner, String scmKey, CommitStatistics commitStatistics) Creates a new instance ofCommitStatisticsBuildAction
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungRun
<?, ?> getOwner()
Collection
<? extends Action> Returns the reference build action if present.Returns a link that can be used in Jelly views to navigate to the reference build.boolean
Returns whether the statistics are based on a reference build or on the previous build.void
onAttached
(Run<?, ?> run) void
toString()
Von Klasse geerbte Methoden hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
Konstruktordetails
-
CommitStatisticsBuildAction
public CommitStatisticsBuildAction(Run<?, ?> owner, String scmKey, CommitStatistics commitStatistics) Creates a new instance ofCommitStatisticsBuildAction
.- Parameter:
owner
- the associated build that created the statisticsscmKey
- key of the repositorycommitStatistics
- the statistics to persist with this action
-
-
Methodendetails
-
getOwner
-
getScmKey
-
getCommitStatistics
-
hasReferenceBuild
public boolean hasReferenceBuild()Returns whether the statistics are based on a reference build or on the previous build.- Gibt zurück:
true
if there is a reference build defined,false
otherwise
-
getReferenceBuild
Returns the reference build action if present.- Gibt zurück:
- the action
-
getReferenceBuildLink
Returns a link that can be used in Jelly views to navigate to the reference build.- Gibt zurück:
- the link
-
toString
-
onAttached
- Angegeben von:
onAttached
in SchnittstelleRunAction2
-
onLoad
- Angegeben von:
onLoad
in SchnittstelleRunAction2
-
getProjectActions
- Angegeben von:
getProjectActions
in SchnittstelleSimpleBuildStep.LastBuildAction
-