public class BitbucketCloudEndpoint extends AbstractBitbucketEndpoint
Modifier and Type | Class and Description |
---|---|
static class |
BitbucketCloudEndpoint.DescriptorImpl
Our descriptor.
|
Modifier and Type | Field and Description |
---|---|
static String |
BAD_SERVER_URL
A bad URL of Bitbucket Cloud.
|
static String |
SERVER_URL
The URL of Bitbucket Cloud.
|
Constructor and Description |
---|
BitbucketCloudEndpoint(boolean enableCache,
int teamCacheDuration,
int repositoriesCacheDuration,
boolean manageHooks,
String credentialsId)
Constructor.
|
BitbucketCloudEndpoint(boolean manageHooks,
String credentialsId) |
BitbucketCloudEndpoint(boolean manageHooks,
String credentialsId,
String endPointURL) |
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName()
Optional name to use to describe the end-point.
|
int |
getRepositoriesCacheDuration() |
String |
getRepositoryUrl(String repoOwner,
String repository)
The user facing URL of the specified repository.
|
String |
getServerUrl()
The URL of this endpoint.
|
int |
getTeamCacheDuration() |
boolean |
isEnableCache() |
authenticator, credentials, getBitbucketJenkinsRootUrl, getCredentialsId, getDescriptor, getEndpointJenkinsRootUrl, getEndpointJenkinsRootUrl, isManageHooks, setBitbucketJenkinsRootUrl
public static final String SERVER_URL
public static final String BAD_SERVER_URL
public BitbucketCloudEndpoint(boolean manageHooks, @CheckForNull String credentialsId)
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public BitbucketCloudEndpoint(boolean manageHooks, @CheckForNull String credentialsId, String endPointURL)
@DataBoundConstructor public BitbucketCloudEndpoint(boolean enableCache, int teamCacheDuration, int repositoriesCacheDuration, boolean manageHooks, @CheckForNull String credentialsId)
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.public boolean isEnableCache()
public int getTeamCacheDuration()
public int getRepositoriesCacheDuration()
public String getDisplayName()
getDisplayName
in class AbstractBitbucketEndpoint
@NonNull public String getServerUrl()
getServerUrl
in class AbstractBitbucketEndpoint
@NonNull public String getRepositoryUrl(@NonNull String repoOwner, @NonNull String repository)
getRepositoryUrl
in class AbstractBitbucketEndpoint
repoOwner
- the repository owner.repository
- the repository.Copyright © 2016–2022. All rights reserved.