Class BitbucketServerEndpoint

All Implemented Interfaces:
Describable<AbstractBitbucketEndpoint>

public class BitbucketServerEndpoint extends AbstractBitbucketEndpoint
Represents a Bitbucket Server instance.
Since:
2.2.0
  • Constructor Details

    • BitbucketServerEndpoint

      @DataBoundConstructor public BitbucketServerEndpoint(@CheckForNull String displayName, @NonNull String serverUrl, boolean manageHooks, @CheckForNull String credentialsId)
      Parameters:
      displayName - Optional name to use to describe the end-point.
      serverUrl - The URL of this Bitbucket Server
      manageHooks - true if and only if Jenkins is supposed to auto-manage hooks for this end-point.
      credentialsId - The IdCredentials.getId() of the credentials to use for auto-management of hooks.
    • BitbucketServerEndpoint

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public BitbucketServerEndpoint(@CheckForNull String displayName, @NonNull String serverUrl, boolean manageHooks, @CheckForNull String credentialsId, String endpointUrl)
  • Method Details

    • findWebhookImplementation

      @NonNull public static BitbucketServerWebhookImplementation findWebhookImplementation(String serverUrl)
    • isCallCanMerge

      public boolean isCallCanMerge()
    • setCallCanMerge

      @DataBoundSetter public void setCallCanMerge(boolean callCanMerge)
    • isCallChanges

      public boolean isCallChanges()
    • setCallChanges

      @DataBoundSetter public void setCallChanges(boolean callChanges)
    • findServerVersion

      @NonNull public static BitbucketServerVersion findServerVersion(String serverUrl)
    • getServerVersion

      @NonNull public BitbucketServerVersion getServerVersion()
    • setServerVersion

      @DataBoundSetter public void setServerVersion(@NonNull BitbucketServerVersion serverVersion)
    • getDisplayName

      public String getDisplayName()
      Optional name to use to describe the end-point.
      Specified by:
      getDisplayName in class AbstractBitbucketEndpoint
      Returns:
      the name to use for the end-point
    • getServerUrl

      @NonNull public String getServerUrl()
      The URL of this endpoint.
      Specified by:
      getServerUrl in class AbstractBitbucketEndpoint
      Returns:
      the URL of the endpoint.
    • getRepositoryUrl

      @NonNull public String getRepositoryUrl(@NonNull String repoOwner, @NonNull String repository)
      The user facing URL of the specified repository.
      Specified by:
      getRepositoryUrl in class AbstractBitbucketEndpoint
      Parameters:
      repoOwner - the repository owner.
      repository - the repository.
      Returns:
      the user facing URL of the specified repository.
    • getWebhookImplementation

      @NonNull public BitbucketServerWebhookImplementation getWebhookImplementation()
    • setWebhookImplementation

      @DataBoundSetter public void setWebhookImplementation(@NonNull BitbucketServerWebhookImplementation webhookImplementation)