Class SCMBasedRetriever
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<LibraryRetriever>
-
- org.jenkinsci.plugins.workflow.libs.LibraryRetriever
-
- org.jenkinsci.plugins.workflow.libs.SCMBasedRetriever
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<LibraryRetriever>
- Direct Known Subclasses:
SCMRetriever
,SCMSourceRetriever
public abstract class SCMBasedRetriever extends LibraryRetriever
Functionality common toSCMSourceRetriever
andSCMRetriever
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SCMBasedRetriever.SCMBasedRetrieverDescriptor
static class
SCMBasedRetriever.WorkspaceListener
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
INCLUDE_SRC_TEST_IN_LIBRARIES
-
Constructor Summary
Constructors Constructor Description SCMBasedRetriever()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRetrieve(String name, boolean changelog, SCM scm, FilePath target, Run<?,?> run, TaskListener listener)
String
getLibraryPath()
boolean
isClone()
protected static <T> T
retrySCMOperation(TaskListener listener, Callable<T> task)
void
setClone(boolean clone)
void
setLibraryPath(String libraryPath)
-
Methods inherited from class org.jenkinsci.plugins.workflow.libs.LibraryRetriever
getDescriptor, retrieve, retrieve, validateVersion, validateVersion
-
-
-
-
Method Detail
-
isClone
public boolean isClone()
-
setClone
@DataBoundSetter public void setClone(boolean clone)
-
getLibraryPath
public String getLibraryPath()
-
setLibraryPath
@DataBoundSetter public void setLibraryPath(String libraryPath)
-
doRetrieve
protected final void doRetrieve(String name, boolean changelog, @NonNull SCM scm, FilePath target, Run<?,?> run, TaskListener listener) throws Exception
- Throws:
Exception
-
retrySCMOperation
protected static <T> T retrySCMOperation(TaskListener listener, Callable<T> task) throws Exception
- Throws:
Exception
-
-