Class BitbucketCloudEndpoint

All Implemented Interfaces:
Describable<AbstractBitbucketEndpoint>

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

  • Constructor Details

    • BitbucketCloudEndpoint

      public BitbucketCloudEndpoint(boolean manageHooks, @CheckForNull String credentialsId)
    • BitbucketCloudEndpoint

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public BitbucketCloudEndpoint(boolean manageHooks, @CheckForNull String credentialsId, String endPointURL)
    • BitbucketCloudEndpoint

      @DataBoundConstructor public BitbucketCloudEndpoint(boolean enableCache, int teamCacheDuration, int repositoriesCacheDuration, boolean manageHooks, @CheckForNull String credentialsId)
      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.
      manageHooks - true if and only if Jenkins is supposed to auto-manage hooks for this end-point.
      credentialsId - The IdCredentials.getId() of the credentials to use for auto-management of hooks.
  • Method Details

    • isEnableCache

      public boolean isEnableCache()
    • getTeamCacheDuration

      public int getTeamCacheDuration()
    • getRepositoriesCacheDuration

      public int getRepositoriesCacheDuration()
    • getDisplayName

      public String getDisplayName()
      Optional name to use to describe the end-point.
      Specified by:
      getDisplayName in class AbstractBitbucketEndpoint
      Returns:
      the name to use for the end-point
    • getServerUrl

      @NonNull public String getServerUrl()
      The URL of this endpoint.
      Specified by:
      getServerUrl in class AbstractBitbucketEndpoint
      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.
      Specified by:
      getRepositoryUrl in class AbstractBitbucketEndpoint
      Parameters:
      repoOwner - the repository owner.
      repository - the repository.
      Returns:
      the user facing URL of the specified repository.