java.lang.Object
io.jenkins.plugins.credentials.secretsmanager.ItemGroups

public abstract class ItemGroups extends Object
Utility class for working with Jenkins ItemGroups, particularly for extracting folder paths.
  • Method Details

    • getFolderPath

      @CheckForNull public static String getFolderPath(@CheckForNull ItemGroup<?> itemGroup)
      Extract the full folder path from an ItemGroup.

      Returns null for global/root contexts (null ItemGroup or Jenkins root). Returns the folder path for folders and other ItemGroups.

      Parameters:
      itemGroup - the ItemGroup (may be null or Jenkins root)
      Returns:
      the folder path (e.g., "engineering/backend"), or null if global context