Klasse GitReferenceRecorder

java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
io.jenkins.plugins.forensics.reference.SimpleReferenceRecorder
io.jenkins.plugins.forensics.reference.ReferenceRecorder
io.jenkins.plugins.forensics.git.reference.GitReferenceRecorder
Alle implementierten Schnittstellen:
ExtensionPoint, Describable<Publisher>, BuildStep, SimpleBuildStep

public class GitReferenceRecorder extends io.jenkins.plugins.forensics.reference.ReferenceRecorder
Recorder that finds a reference build that matches best with the current build of a given Git branch.
Autor:
Arne Schöntag, Ullrich Hafner
  • Konstruktordetails

    • GitReferenceRecorder

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

    • setMaxCommits

      @DataBoundSetter public void setMaxCommits(int maxCommits)
      Sets the maximal number of additional commits in the reference job that will be considered during the comparison with the current branch. To avoid an indefinite scanning of the build history until a matching reference has been found, this value is used as a stop criteria.
      Parameter:
      maxCommits - maximal number of commits
    • getMaxCommits

      public int getMaxCommits()
    • setSkipUnknownCommits

      @DataBoundSetter public void setSkipUnknownCommits(boolean skipUnknownCommits)
      If enabled, then a build of the reference job will be skipped if one of the commits is unknown in the current branch.
      Parameter:
      skipUnknownCommits - if true then builds with unknown commits will be skipped, otherwise unknown commits will be ignored
    • isSkipUnknownCommits

      public boolean isSkipUnknownCommits()
    • find

      protected Optional<Run<?,?>> find(Run<?,?> owner, Run<?,?> lastCompletedBuildOfReferenceJob, edu.hm.hafner.util.FilteredLog log)
      Setzt außer Kraft:
      find in Klasse io.jenkins.plugins.forensics.reference.ReferenceRecorder
    • getDescriptor

      public GitReferenceRecorder.Descriptor getDescriptor()
      Angegeben von:
      getDescriptor in Schnittstelle Describable<Publisher>
      Setzt außer Kraft:
      getDescriptor in Klasse io.jenkins.plugins.forensics.reference.SimpleReferenceRecorder