public class LibraryConfiguration extends AbstractDescribableImpl<LibraryConfiguration>
Modifier and Type | Class and Description |
---|---|
static class |
LibraryConfiguration.DescriptorImpl |
Constructor and Description |
---|
LibraryConfiguration(String name,
LibraryRetriever retriever) |
Modifier and Type | Method and Description |
---|---|
LibraryCachingConfiguration |
getCachingConfiguration() |
String |
getDefaultVersion()
The default version to use with
LibraryRetriever.retrieve(java.lang.String, java.lang.String, boolean, hudson.FilePath, hudson.model.Run<?, ?>, hudson.model.TaskListener) if none other is specified. |
boolean |
getIncludeInChangesets()
Whether to include library changes in reported changes in a job
getIncludeInChangesets() . |
String |
getName()
Library name.
|
LibraryRetriever |
getRetriever() |
boolean |
isAllowVersionOverride()
Whether jobs should be permitted to override
getDefaultVersion() . |
boolean |
isImplicit()
Whether the library should be made accessible to qualifying jobs
without any explicit
Library declaration. |
void |
setAllowVersionOverride(boolean allowVersionOverride) |
void |
setCachingConfiguration(LibraryCachingConfiguration cachingConfiguration) |
void |
setDefaultVersion(String defaultVersion) |
void |
setImplicit(boolean implicit) |
void |
setIncludeInChangesets(boolean includeInChangesets) |
getDescriptor
@DataBoundConstructor public LibraryConfiguration(String name, LibraryRetriever retriever)
public String getName()
Library.value()
, up to the first occurrence of @
, if any.public LibraryRetriever getRetriever()
public String getDefaultVersion()
LibraryRetriever.retrieve(java.lang.String, java.lang.String, boolean, hudson.FilePath, hudson.model.Run<?, ?>, hudson.model.TaskListener)
if none other is specified.@DataBoundSetter public void setDefaultVersion(String defaultVersion)
public boolean isImplicit()
Library
declaration.@DataBoundSetter public void setImplicit(boolean implicit)
public boolean isAllowVersionOverride()
getDefaultVersion()
.@DataBoundSetter public void setAllowVersionOverride(boolean allowVersionOverride)
public boolean getIncludeInChangesets()
getIncludeInChangesets()
.@DataBoundSetter public void setIncludeInChangesets(boolean includeInChangesets)
public LibraryCachingConfiguration getCachingConfiguration()
@DataBoundSetter public void setCachingConfiguration(LibraryCachingConfiguration cachingConfiguration)
Copyright © 2016–2022. All rights reserved.