base class for different mechanisms to load a library
Modifiers | Name | Description |
---|---|---|
static class |
LibraryProvider.LibraryProviderDescriptor |
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
CONFIG_FILE |
the library configuration file path |
static java.lang.String |
RESOURCES_DIR_NAME |
the name of the directory containing library resources |
static java.lang.String |
SRC_DIR_NAME |
the name of the directory containing library src files |
static java.lang.String |
STEPS_DIR_NAME |
the name of the directory containing step files |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getLibrarySchema(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner flowOwner, java.lang.String libName) Returns the contents of the library configuration file, if present. |
|
java.lang.Boolean |
hasLibrary(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner flowOwner, java.lang.String libName) Determines whether the provider has a library |
|
void |
loadLibrary(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner flowOwner, java.lang.String libName, hudson.FilePath srcDir, hudson.FilePath libDir) Copies the library's src files to the provided directory |
Methods inherited from class | Name |
---|---|
class hudson.model.AbstractDescribableImpl |
hudson.model.AbstractDescribableImpl#getDescriptor(), hudson.model.AbstractDescribableImpl#wait(long), hudson.model.AbstractDescribableImpl#wait(long, int), hudson.model.AbstractDescribableImpl#wait(), hudson.model.AbstractDescribableImpl#equals(java.lang.Object), hudson.model.AbstractDescribableImpl#toString(), hudson.model.AbstractDescribableImpl#hashCode(), hudson.model.AbstractDescribableImpl#getClass(), hudson.model.AbstractDescribableImpl#notify(), hudson.model.AbstractDescribableImpl#notifyAll() |
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
the library configuration file path
the name of the directory containing library resources
the name of the directory containing library src files
the name of the directory containing step files
Returns the contents of the library configuration file, if present. Null otherwise
flowOwner
- the Run's FlowExecutionOwnerlibName
- the Library to loadDetermines whether the provider has a library
flowOwner
- the Run's FlowExecutionOwnerlibName
- the Library to loadCopies the library's src files to the provided directory
flowOwner
- the Run's FlowExecutionOwnerlibName
- the library to loadsrcDir
- the directory to copy src files tolibDir
- the directory to copy library setps to