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
  • Constructor Details

    • FolderConfigurations

      @DataBoundConstructor public FolderConfigurations()
  • Method Details

    • getOverrides

      public LibraryCustomConfiguration[] getOverrides()
      Returns the overrides configurations added to the folder
      Returns:
      The list of overrides configurations added to the folder
    • setOverrides

      @DataBoundSetter public void setOverrides(List<LibraryCustomConfiguration> items)
      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
    • getLibraryConfiguration

      public static 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 allowed
      Parameters:
      item - the override configuration desired
      libs - the LibraryConfigurations known for the current context
      Returns:
      the copy of the LibraryConfiguration with the new version or null if library don't allow version override