hudson.plugins.git.util
Class DefaultBuildChooser
java.lang.Object
hudson.plugins.git.util.BuildChooser
hudson.plugins.git.util.DefaultBuildChooser
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<BuildChooser>, Serializable
public class DefaultBuildChooser
- extends BuildChooser
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBuildChooser
@DataBoundConstructor
public DefaultBuildChooser()
getCandidateRevisions
public Collection<Revision> getCandidateRevisions(boolean isPollCall,
String singleBranch,
IGitAPI git,
hudson.model.TaskListener listener,
BuildData data)
throws GitException,
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:
IOException
GitException
Copyright © 2004-2011 Hudson. All Rights Reserved.