Class PluginWebhookManager
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.plugin.PluginWebhookManager
- All Implemented Interfaces:
BitbucketWebhookManager,ExtensionPoint
@Deprecated
@Extension
public class PluginWebhookManager
extends Object
implements BitbucketWebhookManager
Deprecated.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(BitbucketWebhookConfiguration configuration) Deprecated.The configuration that returned this implementation class.voidapply(jenkins.scm.api.trait.SCMSourceTrait trait) Deprecated.Trait instance associate to aSCMSourcewhere gather extra configuration options.read(BitbucketAuthenticatedClient client) Deprecated.Returns the list of all registered webhook at this repository related to this Jenkins.voidregister(BitbucketAuthenticatedClient client) Deprecated.Save a webhook (updating or creating a new one) using the actual configuration.voidremove(String webhookId, BitbucketAuthenticatedClient client) Deprecated.Remove the webhook from the Bitbucket repository with the given identifier.voidsetCallbackURL(String callbackURL, BitbucketEndpoint endpoint) Deprecated.The callback URL where send event payload.Collection<Class<? extends jenkins.scm.api.trait.SCMSourceTrait>>Deprecated.A list of traits class that this manager supports to obtain additional configuration options.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager
withTraits
-
Constructor Details
-
PluginWebhookManager
public PluginWebhookManager()Deprecated.
-
-
Method Details
-
supportedTraits
Deprecated.Description copied from interface:BitbucketWebhookManagerA list of traits class that this manager supports to obtain additional configuration options.- Specified by:
supportedTraitsin interfaceBitbucketWebhookManager- Returns:
- a list of
SCMSourceTraitclasses.
-
apply
public void apply(jenkins.scm.api.trait.SCMSourceTrait trait) Deprecated.Description copied from interface:BitbucketWebhookManagerTrait instance associate to aSCMSourcewhere gather extra configuration options.Each
BitbucketWebhookConfigurationthat would obtain additional configuration options per project must provide an own specific trait implementation.- Specified by:
applyin interfaceBitbucketWebhookManager- Parameters:
trait- to apply
-
apply
Deprecated.Description copied from interface:BitbucketWebhookManagerThe configuration that returned this implementation class.- Specified by:
applyin interfaceBitbucketWebhookManager- Parameters:
configuration- to apply
-
setCallbackURL
Deprecated.Description copied from interface:BitbucketWebhookManagerThe callback URL where send event payload.The method is called with the URL of the default receiver and processed using an appropriate
BitbucketWebhookProcessor. The implementation could decide to ignore given URL and use an own servlet endpoint to process own events.- Specified by:
setCallbackURLin interfaceBitbucketWebhookManager- Parameters:
callbackURL- used to send webhook payload.endpoint- this webhook is registered for, it could be used to retrieve additional information to compose the callbackURL
-
read
@NonNull public Collection<BitbucketWebHook> read(@NonNull BitbucketAuthenticatedClient client) throws IOException Deprecated.Description copied from interface:BitbucketWebhookManagerReturns the list of all registered webhook at this repository related to this Jenkins.- Specified by:
readin interfaceBitbucketWebhookManager- Parameters:
client- authenticated to communicate with Bitbucket- Returns:
- a list of registered
BitbucketWebHook. - Throws:
IOException- in case of communication issue with Bitbucket
-
remove
public void remove(@NonNull String webhookId, @NonNull BitbucketAuthenticatedClient client) throws IOException Deprecated.Description copied from interface:BitbucketWebhookManagerRemove the webhook from the Bitbucket repository with the given identifier.- Specified by:
removein interfaceBitbucketWebhookManager- Parameters:
webhookId- webhook identifier to delete.client- authenticated to communicate with Bitbucket- Throws:
IOException- in case of communication issue with Bitbucket
-
register
Deprecated.Description copied from interface:BitbucketWebhookManagerSave a webhook (updating or creating a new one) using the actual configuration.- Specified by:
registerin interfaceBitbucketWebhookManager- Parameters:
client- authenticated to communicate with Bitbucket- Throws:
IOException- in case of communication issue with Bitbucket
-