hudson.plugins.gerrit.buildchoosers
Class GerritBuildChooser

java.lang.Object
  extended by hudson.plugins.git.util.BuildChooser
      extended by hudson.plugins.gerrit.buildchoosers.GerritBuildChooser
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.plugins.git.util.BuildChooser>, java.io.Serializable

@Extension
public class GerritBuildChooser
extends hudson.plugins.git.util.BuildChooser

See Also:
Serialized Form

Nested Class Summary
static class GerritBuildChooser.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.plugins.git.util.BuildChooser
gitSCM
 
Constructor Summary
GerritBuildChooser()
           
 
Method Summary
 java.util.Collection<hudson.plugins.git.Revision> getCandidateRevisions(boolean isPollCall, java.lang.String singleBranch, hudson.plugins.git.IGitAPI git, hudson.model.TaskListener listener, hudson.plugins.git.util.BuildData data)
          Determines which Revisions to build.
 
Methods inherited from class hudson.plugins.git.util.BuildChooser
all, getDescriptor, getDisplayName, prevBuildForChangelog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GerritBuildChooser

@DataBoundConstructor
public GerritBuildChooser()
Method Detail

getCandidateRevisions

public java.util.Collection<hudson.plugins.git.Revision> getCandidateRevisions(boolean isPollCall,
                                                                               java.lang.String singleBranch,
                                                                               hudson.plugins.git.IGitAPI git,
                                                                               hudson.model.TaskListener listener,
                                                                               hudson.plugins.git.util.BuildData data)
                                                                        throws hudson.plugins.git.GitException,
                                                                               java.io.IOException
Determines which Revisions to build. Uses git log --all to get every commit in repository. Then orders commits by commit time and determines what to build next. Doesn't care about branches.

Specified by:
getCandidateRevisions in class hudson.plugins.git.util.BuildChooser
Throws:
java.io.IOException
hudson.plugins.git.GitException


Copyright © 2010. All Rights Reserved.