Class BitbucketServerEndpoint
java.lang.Object
hudson.model.AbstractDescribableImpl<AbstractBitbucketEndpoint>
com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint
com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketServerEndpoint
- All Implemented Interfaces:
Describable<AbstractBitbucketEndpoint>
Represents a Bitbucket Server instance.
- Since:
- 2.2.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor. -
Constructor Summary
ConstructorDescriptionBitbucketServerEndpoint
(String displayName, String serverUrl, boolean manageHooks, String credentialsId) BitbucketServerEndpoint
(String displayName, String serverUrl, boolean manageHooks, String credentialsId, String endpointUrl) -
Method Summary
Modifier and TypeMethodDescriptionstatic BitbucketServerVersion
findServerVersion
(String serverUrl) findWebhookImplementation
(String serverUrl) Optional name to use to describe the end-point.getRepositoryUrl
(String repoOwner, String repository) The user facing URL of the specified repository.The URL of this endpoint.boolean
boolean
void
setCallCanMerge
(boolean callCanMerge) void
setCallChanges
(boolean callChanges) void
setServerVersion
(BitbucketServerVersion serverVersion) void
setWebhookImplementation
(BitbucketServerWebhookImplementation webhookImplementation) Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.endpoints.AbstractBitbucketEndpoint
authenticator, credentials, getBitbucketJenkinsRootUrl, getCredentialsId, getDescriptor, getEndpointJenkinsRootUrl, getEndpointJenkinsRootUrl, isManageHooks, setBitbucketJenkinsRootUrl
-
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 ServermanageHooks
-true
if and only if Jenkins is supposed to auto-manage hooks for this end-point.credentialsId
- TheIdCredentials.getId()
of the credentials to use for auto-management of hooks.
-
BitbucketServerEndpoint
-
-
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
-
getServerVersion
-
setServerVersion
-
getDisplayName
Optional name to use to describe the end-point.- Specified by:
getDisplayName
in classAbstractBitbucketEndpoint
- Returns:
- the name to use for the end-point
-
getServerUrl
The URL of this endpoint.- Specified by:
getServerUrl
in classAbstractBitbucketEndpoint
- Returns:
- the URL of the endpoint.
-
getRepositoryUrl
The user facing URL of the specified repository.- Specified by:
getRepositoryUrl
in classAbstractBitbucketEndpoint
- Parameters:
repoOwner
- the repository owner.repository
- the repository.- Returns:
- the user facing URL of the specified repository.
-
getWebhookImplementation
-
setWebhookImplementation
@DataBoundSetter public void setWebhookImplementation(@NonNull BitbucketServerWebhookImplementation webhookImplementation)
-