Class ScmResolver
java.lang.Object
io.jenkins.plugins.forensics.util.ScmResolver
Resolves the used SCM in a given build.
- Author:
- Ullrich Hafner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the SCM in a given build.Collection
<? extends SCM> Returns the SCMs in a given build.Collection
<? extends SCM> Returns the SCMs in a given build, filtered by the name.
-
Constructor Details
-
ScmResolver
public ScmResolver()
-
-
Method Details
-
getScm
Returns the SCM in a given build. If no SCM can be determined, then aNullSCM
instance will be returned.- Parameters:
run
- the build to get the SCM from- Returns:
- the SCM
-
getScms
Returns the SCMs in a given build, filtered by the name.- Parameters:
run
- the build to get the SCMs fromkeyFilter
- substring that must be part of the SCM key- Returns:
- the SCMs
-
getScms
Returns the SCMs in a given build.- Parameters:
run
- the build to get the SCMs from- Returns:
- the SCMs
-