Package jenkins.scm.api
Class SCMHead.HeadByItem
java.lang.Object
jenkins.scm.api.SCMHead.HeadByItem
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- SCMHead
Means of locating a head given an item.
- Since:
- 0.3-beta-2
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HeadByItem
public HeadByItem()
-
-
Method Details
-
getHead
Checks whether a given item corresponds to a particular SCM head.- Parameters:
item
- such as a child of anSCMSourceOwner
- Returns:
- a corresponding SCM head, or null if this information is unavailable
-
findHead
Runs all registered implementations.- Parameters:
item
- an item, such as a branch project- Returns:
- the corresponding head, if known
-