Class AbstractBitbucketWebhookConfiguration
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.AbstractBitbucketWebhookConfiguration
- All Implemented Interfaces:
BitbucketWebhookConfiguration,Describable<BitbucketWebhookConfiguration>
- Direct Known Subclasses:
CloudWebhookConfiguration,ServerWebhookConfiguration
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public abstract class AbstractBitbucketWebhookConfiguration
extends Object
implements BitbucketWebhookConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractBitbucketWebhookConfiguration(boolean manageHooks, String credentialsId, boolean enableHookSignature, String hookSignatureCredentialsId) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringReturns theIdCredentials.getId()of the credentials to use for auto-management of hooks.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.booleanbooleanfinal booleanReturnstrueif and only if Jenkins is supposed to auto-manage hooks for this end-point.booleanvoidsetEnableCache(boolean enableCache) voidsetEndpointJenkinsRootURL(String endpointJenkinsRootURL) voidsetSkipCertVerification(boolean skipCertVerification) voidsetWebhooksCacheDuration(Integer webhooksCacheDuration) 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.BitbucketWebhookConfiguration
getDescriptor, getId, getManager
-
Constructor Details
-
AbstractBitbucketWebhookConfiguration
-
-
Method Details
-
isManageHooks
public final boolean isManageHooks()Returnstrueif and only if Jenkins is supposed to auto-manage hooks for this end-point.- Specified by:
isManageHooksin interfaceBitbucketWebhookConfiguration- Returns:
trueif 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.- Specified by:
getCredentialsIdin interfaceBitbucketWebhookConfiguration- Returns:
- the
IdCredentials.getId()of the credentials to use for auto-management of hooks.
-
getHookSignatureCredentialsId
-
isEnableHookSignature
public boolean isEnableHookSignature() -
getEndpointJenkinsRootURL
Description copied from interface:BitbucketWebhookConfigurationA 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
/- Specified by:
getEndpointJenkinsRootURLin interfaceBitbucketWebhookConfiguration- Returns:
- the verbatim setting provided by endpoint configuration
-
setEndpointJenkinsRootURL
-
getDisplayName
Description copied from interface:BitbucketWebhookConfigurationName to use to describe the hook implementation.- Specified by:
getDisplayNamein interfaceBitbucketWebhookConfiguration- Returns:
- the name to use for the implementation
-
isEnableCache
public boolean isEnableCache() -
setEnableCache
@DataBoundSetter public void setEnableCache(boolean enableCache) -
getWebhooksCacheDuration
-
setWebhooksCacheDuration
-
isSkipCertVerification
public boolean isSkipCertVerification() -
setSkipCertVerification
@DataBoundSetter public void setSkipCertVerification(boolean skipCertVerification)
-