Class BitbucketCloudEndpoint
java.lang.Object
hudson.model.AbstractDescribableImpl<AbstractBitbucketEndpoint>
com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint
com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketCloudEndpoint
- All Implemented Interfaces:
Describable<AbstractBitbucketEndpoint>
Represents Bitbucket Cloud.
- Since:
- 2.2.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor. -
Field Summary
-
Constructor Summary
ConstructorDescriptionBitbucketCloudEndpoint
(boolean enableCache, int teamCacheDuration, int repositoriesCacheDuration, boolean manageHooks, String credentialsId) Constructor.BitbucketCloudEndpoint
(boolean manageHooks, String credentialsId) BitbucketCloudEndpoint
(boolean manageHooks, String credentialsId, String endPointURL) -
Method Summary
Modifier and TypeMethodDescriptionOptional name to use to describe the end-point.int
getRepositoryUrl
(String repoOwner, String repository) The user facing URL of the specified repository.The URL of this endpoint.int
boolean
Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint
authenticator, credentials, getBitbucketJenkinsRootUrl, getCredentialsId, getDescriptor, getEndpointJenkinsRootUrl, getEndpointJenkinsRootUrl, isManageHooks, setBitbucketJenkinsRootUrl
-
Field Details
-
SERVER_URL
The URL of Bitbucket Cloud.- See Also:
-
BAD_SERVER_URL
A bad URL of Bitbucket Cloud.- See Also:
-
-
Constructor Details
-
BitbucketCloudEndpoint
-
BitbucketCloudEndpoint
-
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
- TheIdCredentials.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
Optional name to use to describe the end-point.- Specified by:
getDisplayName
in classAbstractBitbucketEndpoint
- Returns:
- the name to use for the end-point
-
getServerUrl
The URL of this endpoint.- Specified by:
getServerUrl
in classAbstractBitbucketEndpoint
- Returns:
- the URL of the endpoint.
-
getRepositoryUrl
The user facing URL of the specified repository.- Specified by:
getRepositoryUrl
in classAbstractBitbucketEndpoint
- Parameters:
repoOwner
- the repository owner.repository
- the repository.- Returns:
- the user facing URL of the specified repository.
-