hudson.plugins.git.util
Class DefaultBuildChooser

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

public class DefaultBuildChooser
extends BuildChooser

See Also:
Serialized Form

Nested Class Summary
static class DefaultBuildChooser.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
DefaultBuildChooser()
           
 
Method Summary
 java.util.Collection<Revision> getCandidateRevisions(boolean isPollCall, java.lang.String singleBranch, IGitAPI git, hudson.model.TaskListener listener, 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

DefaultBuildChooser

@DataBoundConstructor
public DefaultBuildChooser()
Method Detail

getCandidateRevisions

public java.util.Collection<Revision> getCandidateRevisions(boolean isPollCall,
                                                            java.lang.String singleBranch,
                                                            IGitAPI git,
                                                            hudson.model.TaskListener listener,
                                                            BuildData data)
                                                     throws GitException,
                                                            java.io.IOException
Determines which Revisions to build. If only one branch is chosen and only one repository is listed, then just attempt to find the latest revision number for the chosen branch. If multiple branches are selected or the branches include wildcards, then use the advanced usecase as defined in the getAdvancedCandidateRevisons method.

Specified by:
getCandidateRevisions in class BuildChooser
Parameters:
isPollCall - true if this method is called from pollChanges.
singleBranch - contains the name of a single branch to be built this will be non-null only in the simple case, in advanced cases with multiple repositories and/or branches specified then this value will be null.
Returns:
the candidate revision.
Throws:
java.io.IOException
GitException


Copyright © 2010. All Rights Reserved.