Klasse RepositoryMinerStep

Alle implementierten Schnittstellen:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep

public class RepositoryMinerStep extends Recorder implements SimpleBuildStep
A pipeline Step or Freestyle or Maven Recorder that obtains statistics for all repository files. The following statistics are computed:
  • total number of commits
  • total number of different authors
  • creation time
  • last modification time
  • lines of code (from the commit details)
  • code churn (changed lines since created)
Stores the created statistics in a RepositoryStatistics instance. The result is attached to a Run by registering a ForensicsBuildAction.
Ullrich Hafner
  • Konstruktordetails

    • RepositoryMinerStep

      @DataBoundConstructor public RepositoryMinerStep()
      Creates a new instance of RepositoryMinerStep.
  • Methodendetails

    • readResolve

      protected Object readResolve()
      Called after de-serialization to retain backward compatibility or to populate new elements (that would be otherwise initialized to null).
      Gibt zurück:
    • setScm

      @DataBoundSetter public void setScm(String scm)
      Sets the SCM that should be used to find the reference build for. The reference recorder will select the SCM based on a substring comparison, there is no need to specify the full name.
      scm - the ID of the SCM to use (a substring of the full ID)
    • getScm

      public String getScm()
    • perform

      public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException
      Angegeben von:
      perform in Schnittstelle SimpleBuildStep
      Löst aus:
    • getDescriptor

      public RepositoryMinerStep.Descriptor getDescriptor()
      Angegeben von:
      getDescriptor in Schnittstelle Describable<Publisher>
      Setzt außer Kraft:
      getDescriptor in Klasse Recorder