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