Class BitbucketServerEndpoint

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

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

    • BitbucketServerEndpoint

      public BitbucketServerEndpoint(@CheckForNull String displayName, @NonNull String serverURL)
      Default constructor.
      Parameters:
      serverURL -
    • BitbucketServerEndpoint

      @DataBoundConstructor public BitbucketServerEndpoint(@CheckForNull String displayName, @NonNull String serverURL, @NonNull BitbucketWebhookConfiguration webhook)
      Constructor.
      Parameters:
      displayName - Optional name to use to describe the end-point.
      serverURL - The URL of this Bitbucket Server
      webhook - implementation to work for this end-point.
  • Method Details

    • findServerVersion

      @NonNull public static BitbucketServerVersion findServerVersion(String serverURL)
    • getType

      @NonNull public EndpointType getType()
      Description copied from interface: BitbucketEndpoint
      Returns the type of this endpoint.
      Returns:
      endpoint type.
    • getServerVersion

      @NonNull public String getServerVersion()
    • setServerVersion

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

      public String getDisplayName()
      Name to use to describe the endpoint.
      Returns:
      the name to use for the endpoint
    • getServerURL

      public String getServerURL()
      Description copied from interface: BitbucketEndpoint
      The URL of this endpoint.
      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.
      Parameters:
      repoOwner - the repository owner.
      repository - the repository name
      Returns:
      the user facing URL of the specified repository.
    • readResolve

      protected Object readResolve()
      Overrides:
      readResolve in class AbstractBitbucketEndpoint