public class BitbucketServerEndpoint extends AbstractBitbucketEndpoint
Modifier and Type | Class and Description |
---|---|
static class |
BitbucketServerEndpoint.DescriptorImpl
Our descriptor.
|
Constructor and Description |
---|
BitbucketServerEndpoint(String displayName,
String serverUrl,
boolean manageHooks,
String credentialsId) |
BitbucketServerEndpoint(String displayName,
String serverUrl,
boolean manageHooks,
String credentialsId,
String endpointUrl) |
Modifier and Type | Method and Description |
---|---|
static BitbucketServerVersion |
findServerVersion(String serverUrl) |
static BitbucketServerWebhookImplementation |
findWebhookImplementation(String serverUrl) |
String |
getDisplayName()
Optional name to use to describe the end-point.
|
String |
getRepositoryUrl(String repoOwner,
String repository)
The user facing URL of the specified repository.
|
String |
getServerUrl()
The URL of this endpoint.
|
BitbucketServerVersion |
getServerVersion() |
BitbucketServerWebhookImplementation |
getWebhookImplementation() |
boolean |
isCallCanMerge() |
boolean |
isCallChanges() |
void |
setCallCanMerge(boolean callCanMerge) |
void |
setCallChanges(boolean callChanges) |
void |
setServerVersion(BitbucketServerVersion serverVersion) |
void |
setWebhookImplementation(BitbucketServerWebhookImplementation webhookImplementation) |
authenticator, credentials, getBitbucketJenkinsRootUrl, getCredentialsId, getDescriptor, getEndpointJenkinsRootUrl, getEndpointJenkinsRootUrl, isManageHooks, setBitbucketJenkinsRootUrl
@DataBoundConstructor public BitbucketServerEndpoint(@CheckForNull String displayName, @NonNull String serverUrl, boolean manageHooks, @CheckForNull String credentialsId)
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
- The IdCredentials.getId()
of the credentials to use for
auto-management of hooks.@NonNull public static BitbucketServerWebhookImplementation findWebhookImplementation(String serverUrl)
public boolean isCallCanMerge()
@DataBoundSetter public void setCallCanMerge(boolean callCanMerge)
public boolean isCallChanges()
@DataBoundSetter public void setCallChanges(boolean callChanges)
@NonNull public static BitbucketServerVersion findServerVersion(String serverUrl)
@NonNull public BitbucketServerVersion getServerVersion()
@DataBoundSetter public void setServerVersion(@NonNull BitbucketServerVersion serverVersion)
public String getDisplayName()
getDisplayName
in class AbstractBitbucketEndpoint
@NonNull public String getServerUrl()
getServerUrl
in class AbstractBitbucketEndpoint
@NonNull public String getRepositoryUrl(@NonNull String repoOwner, @NonNull String repository)
getRepositoryUrl
in class AbstractBitbucketEndpoint
repoOwner
- the repository owner.repository
- the repository.@NonNull public BitbucketServerWebhookImplementation getWebhookImplementation()
@DataBoundSetter public void setWebhookImplementation(@NonNull BitbucketServerWebhookImplementation webhookImplementation)
Copyright © 2016–2022. All rights reserved.