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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOur descriptor. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.BitbucketCloudEndpoint(boolean enableCache, int teamCacheDuration, int repositoriesCacheDuration, BitbucketWebhookConfiguration webhook) Constructor.Internal Constructor. -
Method Summary
Modifier 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.AbstractBitbucketEndpoint
getCredentialsId, getEndpointJenkinsRootURL, getWebhook, isManageHooks, readResolve, setManageHooks, setWebhookMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.endpoint.BitbucketEndpoint
credentials, getDescriptor, isEquals
-
Field Details
-
SERVER_URL
The URL of Bitbucket Cloud.- See Also:
-
-
Constructor Details
-
BitbucketCloudEndpoint
public 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
-
isEnableCache
public boolean isEnableCache() -
getTeamCacheDuration
public int getTeamCacheDuration() -
getRepositoriesCacheDuration
public int getRepositoriesCacheDuration() -
getDisplayName
Name to use to describe the endpoint.- Returns:
- the name to use for the endpoint
-
getServerURL
Description copied from interface:BitbucketEndpointThe URL of this endpoint.- Returns:
- the URL of the endpoint.
-
getRepositoryURL
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
Description copied from interface:BitbucketEndpointReturns the type of this endpoint.- Returns:
- endpoint type.
-