Class GerritTriggerBuildChooser
java.lang.Object
hudson.plugins.git.util.BuildChooser
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser
- All Implemented Interfaces:
ExtensionPoint,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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDescriptor for GerritTriggerBuildChooser.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 -
Method Summary
Modifier and TypeMethodDescriptionCollection<hudson.plugins.git.Revision>getCandidateRevisions(boolean isPollCall, String singleBranch, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, hudson.plugins.git.util.BuildData data, hudson.plugins.git.util.BuildChooserContext context) Determines which Revisions to build.hudson.plugins.git.util.BuildprevBuildForChangelog(String singleBranch, hudson.plugins.git.util.BuildData data, org.jenkinsci.plugins.gitclient.GitClient git, hudson.plugins.git.util.BuildChooserContext context) Methods inherited from class hudson.plugins.git.util.BuildChooser
all, allApplicableTo, getCandidateRevisions, getCandidateRevisions, getDescriptor, getDisplayName, prepareWorkingTree, prevBuildForChangelog, prevBuildForChangelog
-
Constructor Details
-
GerritTriggerBuildChooser
@DataBoundConstructor public GerritTriggerBuildChooser()Default constructor.
-
-
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 data, hudson.plugins.git.util.BuildChooserContext context) throws hudson.plugins.git.GitException, IOException, InterruptedException Determines which Revisions to build. Doesn't care about branches.- Overrides:
getCandidateRevisionsin classhudson.plugins.git.util.BuildChooser- Parameters:
isPollCall- whether this is being called from Git pollingsingleBranch- The branchgit- The GitClient API objectlistener- TaskListener for logging, etcdata- the historical BuildData objectcontext- the remote context- Returns:
- A Collection containing the new revision.
- Throws:
hudson.plugins.git.GitException- in case of errorIOException- In case of errorInterruptedException- In case of error
-
prevBuildForChangelog
public hudson.plugins.git.util.Build prevBuildForChangelog(String singleBranch, hudson.plugins.git.util.BuildData data, org.jenkinsci.plugins.gitclient.GitClient git, hudson.plugins.git.util.BuildChooserContext context) throws InterruptedException, IOException - Overrides:
prevBuildForChangelogin classhudson.plugins.git.util.BuildChooser- Throws:
InterruptedExceptionIOException
-