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
Nested Classes -
Constructor Summary
Constructors -
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.booleanWhether to include library changes in reported changes in a jobgetIncludeInChangesets().getName()Library name.booleanWhether jobs should be permitted to overridegetDefaultVersion().booleanWhether the library should be made accessible to qualifying jobs without any explicitLibrarydeclaration.voidsetAllowVersionOverride(boolean allowVersionOverride) voidsetCachingConfiguration(LibraryCachingConfiguration cachingConfiguration) voidsetDefaultVersion(String defaultVersion) voidsetImplicit(boolean implicit) voidsetIncludeInChangesets(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 explicitLibrarydeclaration. -
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)
-