Class ItemGroups
java.lang.Object
io.jenkins.plugins.credentials.secretsmanager.ItemGroups
Utility class for working with Jenkins ItemGroups, particularly for extracting folder paths.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFolderPath(ItemGroup<?> itemGroup) Extract the full folder path from an ItemGroup.
-
Method Details
-
getFolderPath
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
-