public static class AbstractGitSCMSource.SpecificRevisionBuildChooser extends BuildChooser
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractGitSCMSource.SpecificRevisionBuildChooser.DescriptorImpl |
gitSCM| Constructor and Description |
|---|
AbstractGitSCMSource.SpecificRevisionBuildChooser(AbstractGitSCMSource.SCMRevisionImpl revision) |
| Modifier and Type | Method and Description |
|---|---|
Collection<hudson.plugins.git.Revision> |
getCandidateRevisions(boolean isPollCall,
String singleBranch,
org.jenkinsci.plugins.gitclient.GitClient git,
hudson.model.TaskListener listener,
BuildData buildData,
BuildChooserContext context)
Get a list of revisions that are candidates to be built.
|
Build |
prevBuildForChangelog(String branch,
BuildData data,
org.jenkinsci.plugins.gitclient.GitClient git,
BuildChooserContext context)
Determines the baseline to compute the changelog against.
|
all, allApplicableTo, getCandidateRevisions, getCandidateRevisions, getDescriptor, getDisplayName, prepareWorkingTree, prevBuildForChangelog, prevBuildForChangelogpublic AbstractGitSCMSource.SpecificRevisionBuildChooser(AbstractGitSCMSource.SCMRevisionImpl revision)
public Collection<hudson.plugins.git.Revision> getCandidateRevisions(boolean isPollCall, String singleBranch, org.jenkinsci.plugins.gitclient.GitClient git, hudson.model.TaskListener listener, BuildData buildData, BuildChooserContext context) throws hudson.plugins.git.GitException, IOException, InterruptedException
BuildChooserThis method is invoked on the node where the workspace exists, which may not be the master.
getCandidateRevisions in class BuildChooserisPollCall - 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.context - Object that provides access back to the model object. This is because
the build chooser can be invoked on a slave where there's no direct access
to the build/project for which this is invoked.
If isPollCall is false, then call back to both project and build are available.
If isPollCall is true, then only the callback to the project is available as there's
no contextual build object.hudson.plugins.git.GitExceptionIOExceptionInterruptedExceptionpublic Build prevBuildForChangelog(String branch, @Nullable BuildData data, org.jenkinsci.plugins.gitclient.GitClient git, BuildChooserContext context) throws IOException, InterruptedException
BuildChooser
BuildChooser.getCandidateRevisions(boolean, String, IGitAPI, TaskListener, BuildData, BuildChooserContext) determine
what commits can be subject for a build, and for each commit it determines the branches that contribute to them.
Once GitSCM picks up a specific Revision to build, for each branch,
in that revision, this method is called to compute the changelog.
prevBuildForChangelog in class BuildChooserbranch - The branch name.data - Information that captures what we did during the last build.git - Used for invoking Gitcontext - Object that provides access back to the model object. This is because
the build chooser can be invoked on a slave where there's no direct access
to the build/project for which this is invoked.IOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.