hudson.plugins.git.util
Class BuildChooser
java.lang.Object
hudson.plugins.git.util.BuildChooser
- All Implemented Interfaces:
- IBuildChooser
public class BuildChooser
- extends java.lang.Object
- implements IBuildChooser
|
Method Summary |
java.util.Collection<Revision> |
getCandidateRevisions()
In order to determine which Revisions to build. |
hudson.model.Action |
getData()
Get data to be persisted. |
Build |
revisionBuilt(Revision revision,
int buildNumber,
hudson.model.Result result)
Report back whether a revision built was successful or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildChooser
public BuildChooser(GitSCM gitSCM,
IGitAPI git,
GitUtils utils,
BuildData data)
getCandidateRevisions
public java.util.Collection<Revision> getCandidateRevisions()
throws GitException,
java.io.IOException
- In order to determine which Revisions to build.
Does the following :
1. Find all the branch revisions
2. Filter out branches that we don't care about from the revisions.
Any Revisions with no interesting branches are dropped.
3. Get rid of any revisions that are wholly subsumed by another
revision we're considering.
4. Get rid of any revisions that we've already built.
NB: Alternate IBuildChooser implementations are possible - this
may be beneficial if "only 1" branch is to be built, as much of
this work is irrelevant in that usecase.
- Specified by:
getCandidateRevisions in interface IBuildChooser
- Returns:
-
- Throws:
java.io.IOException
GitException
revisionBuilt
public Build revisionBuilt(Revision revision,
int buildNumber,
hudson.model.Result result)
- Description copied from interface:
IBuildChooser
- Report back whether a revision built was successful or not.
- Specified by:
revisionBuilt in interface IBuildChooser
getData
public hudson.model.Action getData()
- Description copied from interface:
IBuildChooser
- Get data to be persisted.
- Specified by:
getData in interface IBuildChooser
- Returns:
Copyright © 2009. All Rights Reserved.