Interface BitbucketWebhookConfigurationBuilder
- All Superinterfaces:
ExtensionPoint
- All Known Subinterfaces:
NativeBitbucketWebhookConfigurationBuilder
- All Known Implementing Classes:
AbstractBitbucketWebhookConfigurationBuilderImpl
,CloudWebhookConfigurationBuilderImpl
,PluginWebhookConfigurationBuilder
,ServerWebhookConfigurationBuilderImpl
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public interface BitbucketWebhookConfigurationBuilder
extends ExtensionPoint
Base interface that a builder must implement or extend to provide an instance
of
BitbucketWebhookConfiguration
.- Since:
- 937.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Method Summary
Modifier and TypeMethodDescriptionautoManaged
(String credentialsId) Enable the auto manage of webhook for each repository in a Jenkins project.build()
Returns an instance ofBitbucketWebhookConfiguration
using the provided configuration.callbackRootURL
(String callbackRootURL) Set the Jenkins root URL used to send event payload.getId()
Returns the identifier of builtBitbucketWebhookConfiguration
.
-
Method Details
-
getId
Returns the identifier of builtBitbucketWebhookConfiguration
.- Returns:
- configuration identifier
- See Also:
-
autoManaged
Enable the auto manage of webhook for each repository in a Jenkins project.- Parameters:
credentialsId
- with admin right to add, update or delete webhook of a bitbucket repository- Returns:
- builder itself
-
callbackRootURL
Set the Jenkins root URL used to send event payload.- Parameters:
callbackRootURL
- URL of Jenkins accessible from the Bitbucket server instance.- Returns:
- builder itself
-
build
BitbucketWebhookConfiguration build()Returns an instance ofBitbucketWebhookConfiguration
using the provided configuration.- Returns:
- instance of
BitbucketWebhookConfiguration
-