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 class
Our descriptor. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.BitbucketCloudEndpoint
(boolean enableCache, int teamCacheDuration, int repositoriesCacheDuration, BitbucketWebhookConfiguration webhook) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionName to use to describe the endpoint.int
getRepositoryURL
(String repoOwner, String repository) The user facing URL of the specified repository.The URL of this endpoint.int
getType()
Returns the type of this endpoint.boolean
Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.AbstractBitbucketEndpoint
getCredentialsId, getEndpointJenkinsRootURL, getWebhook, isManageHooks, readResolve, setManageHooks, setWebhook
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
@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
Name to use to describe the endpoint.- Returns:
- the name to use for the endpoint
-
getServerURL
Description copied from interface:BitbucketEndpoint
The 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:BitbucketEndpoint
Returns the type of this endpoint.- Returns:
- endpoint type.
-