Class BitbucketServerEndpoint
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<AbstractBitbucketEndpoint>
-
- com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint
-
- com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketServerEndpoint
-
- All Implemented Interfaces:
Describable<AbstractBitbucketEndpoint>
public class BitbucketServerEndpoint extends AbstractBitbucketEndpoint
Represents a Bitbucket Server instance.- Since:
- 2.2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitbucketServerEndpoint.DescriptorImpl
Our descriptor.
-
Constructor Summary
Constructors Constructor Description BitbucketServerEndpoint(String displayName, String serverUrl, boolean manageHooks, String credentialsId)
BitbucketServerEndpoint(String displayName, String serverUrl, boolean manageHooks, String credentialsId, String endpointUrl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BitbucketServerVersion
findServerVersion(String serverUrl)
static BitbucketServerWebhookImplementation
findWebhookImplementation(String serverUrl)
String
getDisplayName()
Optional name to use to describe the end-point.String
getRepositoryUrl(String repoOwner, String repository)
The user facing URL of the specified repository.String
getServerUrl()
The URL of this endpoint.BitbucketServerVersion
getServerVersion()
BitbucketServerWebhookImplementation
getWebhookImplementation()
boolean
isCallCanMerge()
boolean
isCallChanges()
void
setCallCanMerge(boolean callCanMerge)
void
setCallChanges(boolean callChanges)
void
setServerVersion(BitbucketServerVersion serverVersion)
void
setWebhookImplementation(BitbucketServerWebhookImplementation webhookImplementation)
-
Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint
authenticator, credentials, getBitbucketJenkinsRootUrl, getCredentialsId, getDescriptor, getEndpointJenkinsRootUrl, getEndpointJenkinsRootUrl, isManageHooks, setBitbucketJenkinsRootUrl
-
-
-
-
Constructor Detail
-
BitbucketServerEndpoint
@DataBoundConstructor public BitbucketServerEndpoint(@CheckForNull String displayName, @NonNull String serverUrl, boolean manageHooks, @CheckForNull String credentialsId)
- Parameters:
displayName
- Optional name to use to describe the end-point.serverUrl
- The URL of this Bitbucket ServermanageHooks
-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 Detail
-
findWebhookImplementation
@NonNull public static BitbucketServerWebhookImplementation findWebhookImplementation(String serverUrl)
-
isCallCanMerge
public boolean isCallCanMerge()
-
setCallCanMerge
@DataBoundSetter public void setCallCanMerge(boolean callCanMerge)
-
isCallChanges
public boolean isCallChanges()
-
setCallChanges
@DataBoundSetter public void setCallChanges(boolean callChanges)
-
findServerVersion
@NonNull public static BitbucketServerVersion findServerVersion(String serverUrl)
-
getServerVersion
@NonNull public BitbucketServerVersion getServerVersion()
-
setServerVersion
@DataBoundSetter public void setServerVersion(@NonNull BitbucketServerVersion serverVersion)
-
getDisplayName
public String 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
@NonNull public String getServerUrl()
The URL of this endpoint.- Specified by:
getServerUrl
in classAbstractBitbucketEndpoint
- Returns:
- the URL of the endpoint.
-
getRepositoryUrl
@NonNull public String getRepositoryUrl(@NonNull String repoOwner, @NonNull String repository)
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.
-
getWebhookImplementation
@NonNull public BitbucketServerWebhookImplementation getWebhookImplementation()
-
setWebhookImplementation
@DataBoundSetter public void setWebhookImplementation(@NonNull BitbucketServerWebhookImplementation webhookImplementation)
-
-