Class 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:
    Serialized Form
    • Constructor Detail

      • GerritTriggerBuildChooser

        @DataBoundConstructor
        public GerritTriggerBuildChooser()
        Default constructor.
    • Method Detail

      • 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:
        getCandidateRevisions in class hudson.plugins.git.util.BuildChooser
        Parameters:
        isPollCall - whether this is being called from Git polling
        singleBranch - The branch
        git - The GitClient API object
        listener - TaskListener for logging, etc
        data - the historical BuildData object
        context - the remote context
        Returns:
        A Collection containing the new revision.
        Throws:
        hudson.plugins.git.GitException - in case of error
        IOException - In case of error
        InterruptedException - 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:
        prevBuildForChangelog in class hudson.plugins.git.util.BuildChooser
        Throws:
        InterruptedException
        IOException