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>
Represents Bitbucket Cloud.
- Since:
- 2.2.0
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classOur descriptor.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor.BitbucketCloudEndpoint(boolean enableCache, int teamCacheDuration, int repositoriesCacheDuration, BitbucketWebhookConfiguration webhook) Constructor.Internal Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionName to use to describe the endpoint.intgetRepositoryURL(String repoOwner, String repository) The user facing URL of the specified repository.The URL of this endpoint.intgetType()Returns the type of this endpoint.booleanMethods inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.AbstractBitbucketEndpointgetCredentialsId, getEndpointJenkinsRootURL, getWebhook, isManageHooks, readResolve, setManageHooks, setWebhookMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.endpoint.BitbucketEndpointcredentials, getDescriptor, isEquals
- 
Field Details- 
SERVER_URLThe URL of Bitbucket Cloud.- See Also:
 
 
- 
- 
Constructor Details- 
BitbucketCloudEndpointpublic BitbucketCloudEndpoint()Default constructor.
- 
BitbucketCloudEndpoint@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public BitbucketCloudEndpoint(BitbucketWebhookConfiguration webhook) Internal Constructor.- Parameters:
- webhook- configuration
 
- 
BitbucketCloudEndpoint@DataBoundConstructor public BitbucketCloudEndpoint(boolean enableCache, int teamCacheDuration, int repositoriesCacheDuration, @NonNull BitbucketWebhookConfiguration webhook) Constructor.- Parameters:
- enableCache-- trueif 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- 
isEnableCachepublic boolean isEnableCache()
- 
getTeamCacheDurationpublic int getTeamCacheDuration()
- 
getRepositoriesCacheDurationpublic int getRepositoriesCacheDuration()
- 
getDisplayNameName to use to describe the endpoint.- Returns:
- the name to use for the endpoint
 
- 
getServerURLDescription copied from interface:BitbucketEndpointThe URL of this endpoint.- Returns:
- the URL of the endpoint.
 
- 
getRepositoryURLThe 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.
 
- 
getTypeDescription copied from interface:BitbucketEndpointReturns the type of this endpoint.- Returns:
- endpoint type.
 
 
-