Class BitbucketCloudEndpoint

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.AbstractBitbucketEndpoint
com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.BitbucketCloudEndpoint
All Implemented Interfaces:
BitbucketEndpoint, Describable<BitbucketEndpoint>

public class BitbucketCloudEndpoint extends AbstractBitbucketEndpoint
Represents Bitbucket Cloud.
Since:
2.2.0
  • Field Details

  • Constructor Details

    • BitbucketCloudEndpoint

      public BitbucketCloudEndpoint()
      Default constructor.
    • BitbucketCloudEndpoint

      @DataBoundConstructor public BitbucketCloudEndpoint(boolean enableCache, int teamCacheDuration, int repositoriesCacheDuration, @NonNull BitbucketWebhookConfiguration webhook)
      Constructor.
      Parameters:
      enableCache - true if caching should be used to reduce requests to Bitbucket.
      teamCacheDuration - How long, in minutes, to cache the team response.
      repositoriesCacheDuration - How long, in minutes, to cache the repositories response.
      webhook - implementation chosen for this this endpoint.
  • Method Details

    • isEnableCache

      public boolean isEnableCache()
    • getTeamCacheDuration

      public int getTeamCacheDuration()
    • getRepositoriesCacheDuration

      public int getRepositoriesCacheDuration()
    • getDisplayName

      public String getDisplayName()
      Name to use to describe the endpoint.
      Returns:
      the name to use for the endpoint
    • getServerURL

      public String getServerURL()
      Description copied from interface: BitbucketEndpoint
      The URL of this endpoint.
      Returns:
      the URL of the endpoint.
    • getRepositoryURL

      @NonNull public String getRepositoryURL(@NonNull String repoOwner, @NonNull String repository)
      The user facing URL of the specified repository.
      Parameters:
      repoOwner - the repository owner.
      repository - the repository name
      Returns:
      the user facing URL of the specified repository.
    • getType

      public EndpointType getType()
      Description copied from interface: BitbucketEndpoint
      Returns the type of this endpoint.
      Returns:
      endpoint type.