Interface BitbucketWebhookConfiguration
- All Superinterfaces:
Describable<BitbucketWebhookConfiguration>
- All Known Implementing Classes:
AbstractBitbucketWebhookConfiguration
,CloudWebhookConfiguration
,PluginWebhookConfiguration
,ServerWebhookConfiguration
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public interface BitbucketWebhookConfiguration
extends Describable<BitbucketWebhookConfiguration>
The implementation represents an a webhook configuration that can be used in
a
BitbucketEndpoint
.- Since:
- 937.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns theIdCredentials.getId()
of the credentials to use for auto-management of hooks.static String
Returns the global setting from Jenkins.get().getRootUrl().default BitbucketWebhookDescriptor
Name to use to describe the hook implementation.A custom Jenkins root URL to be used by the webhook implementation as part of the receiver callback endpoint.getId()
The hook implementation identifier.Class<? extends BitbucketWebhookManager>
Returns the implementation that is in charge to apply this configuration to the Bitbucket.boolean
Returnstrue
if and only if Jenkins is supposed to auto-manage hooks for this end-point.
-
Method Details
-
getDisplayName
Name to use to describe the hook implementation.- Returns:
- the name to use for the implementation
-
getId
The hook implementation identifier.- Returns:
- the unique identifier for this implementation
-
isManageHooks
boolean isManageHooks()Returnstrue
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.
-
getCredentialsId
Returns 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
A custom Jenkins root URL to be used by the webhook implementation as part of the receiver callback endpoint.The returned value must ensure that ends with a slash
/
- Returns:
- the verbatim setting provided by endpoint configuration
-
getDefaultJenkinsRootURL
Returns the global setting from Jenkins.get().getRootUrl().- Returns:
- Jenkins URL defined in the global configuration page.
-
getManager
Class<? extends BitbucketWebhookManager> getManager()Returns the implementation that is in charge to apply this configuration to the Bitbucket.- Returns:
- a manager class specific for this configuration.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<BitbucketWebhookConfiguration>
- See Also:
-