Interface BitbucketEndpoint
- All Superinterfaces:
Describable<BitbucketEndpoint>
- All Known Implementing Classes:
AbstractBitbucketEndpoint
,BitbucketCloudEndpoint
,BitbucketServerEndpoint
The implementation represents an endpoint configuration to be used in
BitbucketSCMSource
.- Since:
- 936.4.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.cloudbees.plugins.credentials.common.StandardCredentials
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.UsegetWebhook()
instead of this to retrieve information webhookdefault BitbucketEndpointDescriptor
Name to use to describe the endpoint.Deprecated, for removal: This API element is subject to removal in a future version.UsegetWebhook()
instead of this to retrieve information webhookgetRepositoryURL
(String repoOwner, String repoSlug) The user facing URL of the specified repository.The URL of this endpoint.getType()
Returns the type of this endpoint.Returns the webhook implementation that this endpoint is using to manage the incoming payload.default boolean
isEquals
(BitbucketEndpoint endpoint) Returns if two endpoint are the equals.boolean
Deprecated, for removal: This API element is subject to removal in a future version.UsegetWebhook()
instead of this to retrieve information webhookvoid
setManageHooks
(boolean manageHooks, String credentialsId) Deprecated, for removal: This API element is subject to removal in a future version.UsegetWebhook()
instead of this to retrieve information webhook
-
Method Details
-
getDisplayName
Name to use to describe the endpoint.- Returns:
- the name to use for the endpoint
-
getRepositoryURL
The user facing URL of the specified repository.- Parameters:
repoOwner
- the repository owner.repoSlug
- the repository name- Returns:
- the user facing URL of the specified repository.
-
getType
Returns the type of this endpoint.- Returns:
- endpoint type.
-
getServerURL
The URL of this endpoint.- Returns:
- the URL of the endpoint.
-
getWebhook
Returns the webhook implementation that this endpoint is using to manage the incoming payload.- Returns:
- the
BitbucketWebhookConfiguration
implementation selected for this endpoint. - Since:
- 937.0.0
-
isManageHooks
Deprecated, for removal: This API element is subject to removal in a future version.UsegetWebhook()
instead of this to retrieve information webhookReturnstrue
if and only if Jenkins is supposed to auto-manage hooks for this end-point.- Returns:
true
if and only if Jenkins is supposed to auto-manage hooks for this end-point.
-
setManageHooks
@Deprecated(since="937.0.0", forRemoval=true) void setManageHooks(boolean manageHooks, @CheckForNull String credentialsId) Deprecated, for removal: This API element is subject to removal in a future version.UsegetWebhook()
instead of this to retrieve information webhookSets if Jenkins is supposed to auto-manage hooks for this end-point.- Parameters:
manageHooks
- if Jenkins must auto-manage hooks registration.credentialsId
- credentialsId to use with rights to create or update web hook for Bitbucket repositories.
-
getCredentialsId
Deprecated, for removal: This API element is subject to removal in a future version.UsegetWebhook()
instead of this to retrieve information webhookReturns theIdCredentials.getId()
of the credentials to use for auto-management of hooks.- Returns:
- the
IdCredentials.getId()
of the credentials to use for auto-management of hooks.
-
getEndpointJenkinsRootURL
Deprecated, for removal: This API element is subject to removal in a future version.UsegetWebhook()
instead of this to retrieve information webhookJenkins 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.- Returns:
- the verbatim setting provided by endpoint configuration
-
credentials
@Deprecated(since="937.0.0", forRemoval=true) @CheckForNull default com.cloudbees.plugins.credentials.common.StandardCredentials credentials()Deprecated, for removal: This API element is subject to removal in a future version.UsegetWebhook()
instead of this to retrieve information webhookLooks up theStandardCredentials
to use for auto-management of hooks.- Returns:
- the credentials or
null
.
-
isEquals
Returns if two endpoint are the equals.- Parameters:
endpoint
- to compare- Returns:
true
if endpoint are the same,false
otherwise
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<BitbucketEndpoint>
- See Also:
-
getWebhook()
instead of this to retrieve information webhook