Class DeflakeGitBuildChooser

java.lang.Object
hudson.plugins.git.util.BuildChooser
com.google.jenkins.flakyTestHandler.plugin.deflake.DeflakeGitBuildChooser
All Implemented Interfaces:
ExtensionPoint, Describable<hudson.plugins.git.util.BuildChooser>, Serializable

public class DeflakeGitBuildChooser extends hudson.plugins.git.util.BuildChooser
For a failing build, restore the source code status to the one it failed on and then re-run failing tests. This will help us get precise idea whether a test is flaky or not.
Author:
Qingzhou Luo
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface hudson.ExtensionPoint

    ExtensionPoint.LegacyInstancesAreScopedToHudson
  • Field Summary

    Fields inherited from class hudson.plugins.git.util.BuildChooser

    gitSCM
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<hudson.plugins.git.Revision>
    getCandidateRevisions(boolean isPollCall, String singleBranch, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, hudson.plugins.git.util.BuildData buildData, hudson.plugins.git.util.BuildChooserContext context)
    Get failing build revision if this is a deflake build, otherwise use the default build chooser

    Methods inherited from class hudson.plugins.git.util.BuildChooser

    all, allApplicableTo, getCandidateRevisions, getCandidateRevisions, getDescriptor, getDisplayName, prepareWorkingTree, prevBuildForChangelog, prevBuildForChangelog, prevBuildForChangelog

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DeflakeGitBuildChooser

      @DataBoundConstructor public DeflakeGitBuildChooser()
  • Method Details

    • getCandidateRevisions

      public Collection<hudson.plugins.git.Revision> getCandidateRevisions(boolean isPollCall, String singleBranch, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, hudson.plugins.git.util.BuildData buildData, hudson.plugins.git.util.BuildChooserContext context) throws hudson.plugins.git.GitException, IOException, InterruptedException
      Get failing build revision if this is a deflake build, otherwise use the default build chooser
      Overrides:
      getCandidateRevisions in class hudson.plugins.git.util.BuildChooser
      Throws:
      hudson.plugins.git.GitException
      IOException
      InterruptedException