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>
Represents a Bitbucket Server instance.
- Since:
- 2.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOur descriptor. -
Constructor Summary
ConstructorsConstructorDescriptionBitbucketServerEndpoint(String displayName, String serverURL) Default constructor.BitbucketServerEndpoint(String displayName, String serverURL, BitbucketWebhookConfiguration webhook) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic BitbucketServerVersionfindServerVersion(String serverURL) Name to use to describe the endpoint.getRepositoryURL(String repoOwner, String repository) The user facing URL of the specified repository.The URL of this endpoint.getType()Returns the type of this endpoint.protected ObjectvoidsetServerVersion(String serverVersion) Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.AbstractBitbucketEndpoint
getCredentialsId, getEndpointJenkinsRootURL, getWebhook, isManageHooks, setManageHooks, setWebhookMethods 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.endpoint.BitbucketEndpoint
credentials, getDescriptor, isEquals
-
Constructor Details
-
BitbucketServerEndpoint
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 Serverwebhook- implementation to work for this end-point.
-
-
Method Details
-
findServerVersion
-
getType
Description copied from interface:BitbucketEndpointReturns the type of this endpoint.- Returns:
- endpoint type.
-
getServerVersion
-
setServerVersion
-
getDisplayName
Name to use to describe the endpoint.- Returns:
- the name to use for the endpoint
-
getServerURL
Description copied from interface:BitbucketEndpointThe URL of this endpoint.- Returns:
- the URL of the endpoint.
-
getRepositoryURL
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
- Overrides:
readResolvein classAbstractBitbucketEndpoint
-