Class LibraryConfiguration
java.lang.Object
hudson.model.AbstractDescribableImpl<LibraryConfiguration>
org.jenkinsci.plugins.workflow.libs.LibraryConfiguration
- All Implemented Interfaces:
Describable<LibraryConfiguration>
User configuration for one library.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe default version to use withLibraryRetriever.retrieve(java.lang.String, java.lang.String, boolean, hudson.FilePath, hudson.model.Run<?, ?>, hudson.model.TaskListener)
if none other is specified.boolean
Whether to include library changes in reported changes in a jobgetIncludeInChangesets()
.getName()
Library name.boolean
Whether jobs should be permitted to overridegetDefaultVersion()
.boolean
Whether the library should be made accessible to qualifying jobs without any explicitLibrary
declaration.void
setAllowVersionOverride
(boolean allowVersionOverride) void
setCachingConfiguration
(LibraryCachingConfiguration cachingConfiguration) void
setDefaultVersion
(String defaultVersion) void
setImplicit
(boolean implicit) void
setIncludeInChangesets
(boolean includeInChangesets) Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
LibraryConfiguration
-
-
Method Details
-
getName
Library name. Should matchLibrary.value()
, up to the first occurrence of@
, if any. -
getRetriever
-
getDefaultVersion
The default version to use withLibraryRetriever.retrieve(java.lang.String, java.lang.String, boolean, hudson.FilePath, hudson.model.Run<?, ?>, hudson.model.TaskListener)
if none other is specified. -
setDefaultVersion
-
isImplicit
public boolean isImplicit()Whether the library should be made accessible to qualifying jobs without any explicitLibrary
declaration. -
setImplicit
@DataBoundSetter public void setImplicit(boolean implicit) -
isAllowVersionOverride
public boolean isAllowVersionOverride()Whether jobs should be permitted to overridegetDefaultVersion()
. -
setAllowVersionOverride
@DataBoundSetter public void setAllowVersionOverride(boolean allowVersionOverride) -
getIncludeInChangesets
public boolean getIncludeInChangesets()Whether to include library changes in reported changes in a jobgetIncludeInChangesets()
. -
setIncludeInChangesets
@DataBoundSetter public void setIncludeInChangesets(boolean includeInChangesets) -
getCachingConfiguration
-
setCachingConfiguration
@DataBoundSetter public void setCachingConfiguration(LibraryCachingConfiguration cachingConfiguration)
-