Class FolderConfigurations
java.lang.Object
hudson.model.AbstractDescribableImpl<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
io.jenkins.plugins.shared_library_version_override.FolderConfigurations
- All Implemented Interfaces:
ExtensionPoint
,Describable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
,ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
public class FolderConfigurations
extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
A class that holds a list of overrides configurations for a folder
- Author:
- Cyril Pottiers
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Simulate a new LibraryResolver for Trusted Libraries (Global-level Libraries)static class
Simulate a new LibraryResolver for Untrusted libraries (Folder-level Libraries)static class
Descriptor class.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
owner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<org.jenkinsci.plugins.workflow.libs.LibraryConfiguration>
getAllLibrariesForGroup
(ItemGroup<?> group) Return all known LibraryConfigurations for an ItemGroupstatic Collection<org.jenkinsci.plugins.workflow.libs.LibraryConfiguration>
getAllUntrustedLibrariesForGroup
(ItemGroup<?> group) Return all known Untrusted LibraryConfigurations for an ItemGroupstatic org.jenkinsci.plugins.workflow.libs.LibraryConfiguration
getLibraryConfiguration
(LibraryCustomConfiguration item, Collection<org.jenkinsci.plugins.workflow.libs.LibraryConfiguration> libs) Return a copy of a LibraryConfiguration with a new version, if allowedReturns the overrides configurations added to the foldervoid
Adds a bunch of overrides configurations to the folderMethods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getDescriptor, getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, reconfigure, setOwner
-
Constructor Details
-
FolderConfigurations
@DataBoundConstructor public FolderConfigurations()
-
-
Method Details
-
getOverrides
Returns the overrides configurations added to the folder- Returns:
- The list of overrides configurations added to the folder
-
setOverrides
Adds a bunch of overrides configurations to the folder- Parameters:
items
- The list of overrides configurations to be added to the folder
-
getAllLibrariesForGroup
public static Collection<org.jenkinsci.plugins.workflow.libs.LibraryConfiguration> getAllLibrariesForGroup(ItemGroup<?> group) Return all known LibraryConfigurations for an ItemGroup- Parameters:
group
- the context- Returns:
- the known LibraryConfigurations
-
getAllUntrustedLibrariesForGroup
public static Collection<org.jenkinsci.plugins.workflow.libs.LibraryConfiguration> getAllUntrustedLibrariesForGroup(ItemGroup<?> group) Return all known Untrusted LibraryConfigurations for an ItemGroup- Parameters:
group
- the context- Returns:
- the known Untrusted LibraryConfigurations
-