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 class
Our descriptor. -
Constructor Summary
ConstructorsConstructorDescriptionBitbucketServerEndpoint
(String displayName, String serverURL) Default constructor.BitbucketServerEndpoint
(String displayName, String serverURL, BitbucketWebhookConfiguration webhook) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic BitbucketServerVersion
findServerVersion
(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 Object
void
setServerVersion
(String serverVersion) Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.impl.endpoint.AbstractBitbucketEndpoint
getCredentialsId, getEndpointJenkinsRootURL, getWebhook, isManageHooks, setManageHooks, setWebhook
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:BitbucketEndpoint
Returns 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:BitbucketEndpoint
The 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:
readResolve
in classAbstractBitbucketEndpoint
-