Class AbstractBitbucketEndpoint

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.AbstractBitbucketEndpoint
All Implemented Interfaces:
BitbucketEndpoint, Describable<BitbucketEndpoint>
Direct Known Subclasses:
BitbucketCloudEndpoint, BitbucketServerEndpoint

public abstract class AbstractBitbucketEndpoint extends Object implements BitbucketEndpoint
Since:
2.2.0
  • Method Details

    • getWebhook

      @NonNull public BitbucketWebhookConfiguration getWebhook()
      Description copied from interface: BitbucketEndpoint
      Returns the webhook implementation that this endpoint is using to manage the incoming payload.
      Specified by:
      getWebhook in interface BitbucketEndpoint
      Returns:
      the BitbucketWebhookConfiguration implementation selected for this endpoint.
    • setWebhook

      public void setWebhook(@NonNull BitbucketWebhookConfiguration webhook)
    • setManageHooks

      @Deprecated(since="937.0.0", forRemoval=true) public void setManageHooks(boolean manageHooks, String credentialsId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BitbucketEndpoint
      Sets if Jenkins is supposed to auto-manage hooks for this end-point.
      Specified by:
      setManageHooks in interface BitbucketEndpoint
      Parameters:
      manageHooks - if Jenkins must auto-manage hooks registration.
      credentialsId - credentialsId to use with rights to create or update web hook for Bitbucket repositories.
    • getEndpointJenkinsRootURL

      @Deprecated(since="937.0.0", forRemoval=true) @NonNull public String getEndpointJenkinsRootURL()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Jenkins 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.
      Specified by:
      getEndpointJenkinsRootURL in interface BitbucketEndpoint
      Returns:
      the verbatim setting provided by endpoint configuration
    • isManageHooks

      @Deprecated(since="937.0.0", forRemoval=true) public final boolean isManageHooks()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns true if and only if Jenkins is supposed to auto-manage hooks for this end-point.
      Specified by:
      isManageHooks in interface BitbucketEndpoint
      Returns:
      true if and only if Jenkins is supposed to auto-manage hooks for this end-point.
    • getCredentialsId

      @Deprecated(since="937.0.0", forRemoval=true) @CheckForNull public final String getCredentialsId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the IdCredentials.getId() of the credentials to use for auto-management of hooks.
      Specified by:
      getCredentialsId in interface BitbucketEndpoint
      Returns:
      the IdCredentials.getId() of the credentials to use for auto-management of hooks.
    • readResolve

      protected Object readResolve()