Class LocalItemStorage

All Implemented Interfaces:
ExtensionPoint, Describable<ItemStorage<LocalObjectPath>>, Serializable

public class LocalItemStorage extends ItemStorage<LocalObjectPath>
Implementation of Item Storage that stores data on the Jenkins controller within the existing job folder or in custom path.
Author:
Peter Hayes
See Also:
  • Constructor Details

    • LocalItemStorage

      @DataBoundConstructor public LocalItemStorage()
  • Method Details

    • setRoot

      @DataBoundSetter public void setRoot(String root)
    • getRoot

      public String getRoot()
    • getObjectPath

      public LocalObjectPath getObjectPath(Item item, String path)
      Description copied from class: ItemStorage
      Given an item and path, return an ObjectPath implementation for it
      Specified by:
      getObjectPath in class ItemStorage<LocalObjectPath>
      Parameters:
      item - The item to associate the path with
      path - The path scoped by the item
      Returns:
      The ObjectPath to act upon that path
    • getObjectPathForBranch

      public LocalObjectPath getObjectPathForBranch(Item item, String path, String branch)
      Description copied from class: ItemStorage
      Given an item, a path and a branch, return an ObjectPath implementation for it
      Specified by:
      getObjectPathForBranch in class ItemStorage<LocalObjectPath>
      Parameters:
      item - The item to associate the path with
      path - The path scoped by the item
      branch - The branch for which to get the object path for
      Returns:
      The ObjectPath to act upon that path