Class AbstractBitbucketEndpoint
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.AbstractBitbucketEndpoint
- All Implemented Interfaces:
BitbucketEndpoint
,Describable<BitbucketEndpoint>
- Direct Known Subclasses:
BitbucketCloudEndpoint
,BitbucketServerEndpoint
Represents a
BitbucketCloudEndpoint
or a BitbucketServerEndpoint
.- Since:
- 2.2.0
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the webhook implementation that this endpoint is using to manage the incoming payload.final boolean
Deprecated, for removal: This API element is subject to removal in a future version.protected Object
void
setManageHooks
(boolean manageHooks, String credentialsId) Deprecated, for removal: This API element is subject to removal in a future version.void
setWebhook
(BitbucketWebhookConfiguration webhook) 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, getDisplayName, getRepositoryURL, getServerURL, getType, isEquals
-
Method Details
-
getWebhook
Description copied from interface:BitbucketEndpoint
Returns the webhook implementation that this endpoint is using to manage the incoming payload.- Specified by:
getWebhook
in interfaceBitbucketEndpoint
- Returns:
- the
BitbucketWebhookConfiguration
implementation selected for this endpoint.
-
setWebhook
-
setManageHooks
@Deprecated(since="937.0.0", forRemoval=true) public void setManageHooks(boolean manageHooks, String credentialsId) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:BitbucketEndpoint
Sets if Jenkins is supposed to auto-manage hooks for this end-point.- Specified by:
setManageHooks
in interfaceBitbucketEndpoint
- Parameters:
manageHooks
- if Jenkins must auto-manage hooks registration.credentialsId
- credentialsId to use with rights to create or update web hook for Bitbucket repositories.
-
getEndpointJenkinsRootURL
Deprecated, for removal: This API element is subject to removal in a future version.Jenkins Server Root URL to be used by this Bitbucket endpoint. The global setting from Jenkins.get().getRootUrl() will be used if this field is null or equals an empty string.- Specified by:
getEndpointJenkinsRootURL
in interfaceBitbucketEndpoint
- Returns:
- the verbatim setting provided by endpoint configuration
-
isManageHooks
Deprecated, for removal: This API element is subject to removal in a future version.Returnstrue
if and only if Jenkins is supposed to auto-manage hooks for this end-point.- Specified by:
isManageHooks
in interfaceBitbucketEndpoint
- Returns:
true
if and only if Jenkins is supposed to auto-manage hooks for this end-point.
-
getCredentialsId
Deprecated, for removal: This API element is subject to removal in a future version.Returns theIdCredentials.getId()
of the credentials to use for auto-management of hooks.- Specified by:
getCredentialsId
in interfaceBitbucketEndpoint
- Returns:
- the
IdCredentials.getId()
of the credentials to use for auto-management of hooks.
-
readResolve
-