com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class GerritTriggerBuildChooser

java.lang.Object
  extended by hudson.plugins.git.util.BuildChooser
      extended by com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.plugins.git.util.BuildChooser>, Serializable

public class GerritTriggerBuildChooser
extends hudson.plugins.git.util.BuildChooser

Used by the git plugin to determine the revision to build.

Author:
Andrew Bayer
See Also:
Serialized Form

Nested Class Summary
static class GerritTriggerBuildChooser.DescriptorImpl
          Descriptor for GerritTriggerBuildChooser.
 
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
GerritTriggerBuildChooser()
          Default constructor.
 
Method Summary
 Collection<hudson.plugins.git.Revision> getCandidateRevisions(boolean isPollCall, String singleBranch, hudson.plugins.git.IGitAPI git, hudson.model.TaskListener listener, hudson.plugins.git.util.BuildData data)
          Determines which Revisions to build.
 hudson.plugins.git.util.Build prevBuildForChangelog(String singleBranch, hudson.plugins.git.util.BuildData data, hudson.plugins.git.IGitAPI git)
           
 
Methods inherited from class hudson.plugins.git.util.BuildChooser
all, getDescriptor, getDisplayName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GerritTriggerBuildChooser

@DataBoundConstructor
public GerritTriggerBuildChooser()
Default constructor.

Method Detail

getCandidateRevisions

public Collection<hudson.plugins.git.Revision> getCandidateRevisions(boolean isPollCall,
                                                                     String singleBranch,
                                                                     hudson.plugins.git.IGitAPI git,
                                                                     hudson.model.TaskListener listener,
                                                                     hudson.plugins.git.util.BuildData data)
                                                              throws hudson.plugins.git.GitException,
                                                                     IOException
Determines which Revisions to build. Doesn't care about branches.

Specified by:
getCandidateRevisions in class hudson.plugins.git.util.BuildChooser
Parameters:
isPollCall - whether this is being called from Git polling
singleBranch - The branch
git - The GitAPI object
listener - TaskListener for logging, etc
data - the historical BuildData object
Returns:
A Collection containing the new revision.
Throws:
hudson.plugins.git.GitException - in case of error
IOException - In case of error

prevBuildForChangelog

public hudson.plugins.git.util.Build prevBuildForChangelog(String singleBranch,
                                                           hudson.plugins.git.util.BuildData data,
                                                           hudson.plugins.git.IGitAPI git)
Overrides:
prevBuildForChangelog in class hudson.plugins.git.util.BuildChooser


Copyright © 2004-2011. All Rights Reserved.