Class GCSItemStorage

java.lang.Object
hudson.model.AbstractDescribableImpl<jenkins.plugins.itemstorage.ItemStorage<GCSObjectPath>>
jenkins.plugins.itemstorage.ItemStorage<GCSObjectPath>
jenkins.plugins.itemstorage.gcs.GCSItemStorage
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.plugins.itemstorage.ItemStorage<GCSObjectPath>>, Serializable

public class GCSItemStorage extends jenkins.plugins.itemstorage.ItemStorage<GCSObjectPath>
Google Cloud Storage implementation of the jobcacher ItemStorage extension point.

Authentication is Application Default Credentials (ADC) — Workload Identity on GKE, GOOGLE_APPLICATION_CREDENTIALS, or gcloud user credentials locally. No HMAC keys and no service-account JSON are configured here.

See Also:
  • Constructor Details

    • GCSItemStorage

      @DataBoundConstructor public GCSItemStorage(String bucketName)
  • Method Details

    • getBucketName

      public String getBucketName()
    • getPrefix

      public String getPrefix()
    • setPrefix

      @DataBoundSetter public void setPrefix(String prefix)
    • getProjectId

      public String getProjectId()
    • setProjectId

      @DataBoundSetter public void setProjectId(String projectId)
    • getObjectPath

      public GCSObjectPath getObjectPath(Item item, String path)
      Specified by:
      getObjectPath in class jenkins.plugins.itemstorage.ItemStorage<GCSObjectPath>
    • getObjectPathForBranch

      public GCSObjectPath getObjectPathForBranch(Item item, String path, String branch)
      Specified by:
      getObjectPathForBranch in class jenkins.plugins.itemstorage.ItemStorage<GCSObjectPath>