Class BitbucketServerEndpoint
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint
com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketServerEndpoint
- All Implemented Interfaces:
BitbucketEndpoint
,Describable<BitbucketEndpoint>
Represents a Bitbucket Server instance.
- Since:
- 2.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Our descriptor. -
Constructor Summary
ConstructorsConstructorDescriptionBitbucketServerEndpoint
(String displayName, String serverUrl, boolean manageHooks, String credentialsId) Deprecated.BitbucketServerEndpoint
(String displayName, String serverUrl, boolean manageHooks, String credentialsId, boolean enableHookSignature, String hookSignatureCredentialsId) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic BitbucketServerVersion
findServerVersion
(String serverURL) findWebhookImplementation
(String serverURL) Name to use to describe the endpoint.getRepositoryUrl
(String repoOwner, String repository) The user facing URL of the specified repository.getRepositoryURL
(String repoOwner, String repository) The user facing URL of the specified repository.Deprecated, for removal: This API element is subject to removal in a future version.The URL of this endpoint.getType()
Returns the type of this endpoint.boolean
boolean
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, getEndpointJenkinsRootURL, getHookSignatureCredentialsId, hookSignatureCredentials, isEnableHookSignature, isManageHooks, setBitbucketJenkinsRootUrl
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
isEquals
-
Constructor Details
-
BitbucketServerEndpoint
@Deprecated(since="936.3.1") public BitbucketServerEndpoint(@CheckForNull String displayName, @NonNull String serverUrl, boolean manageHooks, @CheckForNull String credentialsId) Deprecated. -
BitbucketServerEndpoint
@DataBoundConstructor public BitbucketServerEndpoint(@CheckForNull String displayName, @NonNull String serverUrl, boolean manageHooks, @CheckForNull String credentialsId, boolean enableHookSignature, @CheckForNull String hookSignatureCredentialsId) Constructor.- 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.enableHookSignature
-true
hooks that comes Bitbucket Data Center are signed.hookSignatureCredentialsId
- TheIdCredentials.getId()
of the credentials to use for verify the signature of payload.
-
-
Method Details
-
findWebhookImplementation
@NonNull public static BitbucketServerWebhookImplementation findWebhookImplementation(String serverURL) -
findServerVersion
-
isCallCanMerge
public boolean isCallCanMerge() -
getType
Description copied from interface:BitbucketEndpoint
Returns the type of this endpoint.- Returns:
- endpoint type.
-
setCallCanMerge
@DataBoundSetter public void setCallCanMerge(boolean callCanMerge) -
isCallChanges
public boolean isCallChanges() -
setCallChanges
@DataBoundSetter public void setCallChanges(boolean callChanges) -
getServerVersion
-
setServerVersion
-
getDisplayName
Name to use to describe the endpoint.- Returns:
- the name to use for the endpoint
-
getServerUrl
Deprecated, for removal: This API element is subject to removal in a future version.The URL of this endpoint.- Specified by:
getServerUrl
in classAbstractBitbucketEndpoint
- Returns:
- the URL of 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.- Specified by:
getRepositoryUrl
in classAbstractBitbucketEndpoint
- Parameters:
repoOwner
- the repository owner.repository
- the repository.- Returns:
- the user facing URL of the specified repository.
-
getRepositoryURL
The user facing URL of the specified repository.- Specified by:
getRepositoryURL
in interfaceBitbucketEndpoint
- Overrides:
getRepositoryURL
in classAbstractBitbucketEndpoint
- Parameters:
repoOwner
- the repository owner.repository
- the repository name- Returns:
- the user facing URL of the specified repository.
-
getWebhookImplementation
-
setWebhookImplementation
@DataBoundSetter public void setWebhookImplementation(@NonNull BitbucketServerWebhookImplementation webhookImplementation)
-