public class BitbucketServerConfiguration extends AbstractDescribableImpl<BitbucketServerConfiguration>
Modifier and Type | Class and Description |
---|---|
static class |
BitbucketServerConfiguration.DescriptorImpl |
Constructor and Description |
---|
BitbucketServerConfiguration(String adminCredentialsId,
String baseUrl,
String id) |
Modifier and Type | Method and Description |
---|---|
String |
getAdminCredentialsId() |
String |
getBaseUrl()
Returns the URL location of the server instance
|
GlobalCredentialsProvider |
getGlobalCredentialsProvider(Item item)
For a given item, returns a global credential provider.
|
GlobalCredentialsProvider |
getGlobalCredentialsProvider(String context)
Similar to
getGlobalCredentialsProvider(Item) but without item. |
String |
getId() |
String |
getServerName()
Returns the name assigned to the server in Jenkins
|
void |
setBaseUrl(String baseUrl)
Sets the URL location of the server instance
|
void |
setServerName(String serverName)
Sets the name assigned to the server in Jenkins
|
FormValidation |
validate()
Checks that the configuration is valid
|
getDescriptor
public GlobalCredentialsProvider getGlobalCredentialsProvider(Item item)
item
- which will use the credential.public GlobalCredentialsProvider getGlobalCredentialsProvider(String context)
getGlobalCredentialsProvider(Item)
but without item. This
is usually a case when fetching credentials as part of `doFill` methods.context
- a context which will be loggedpublic String getAdminCredentialsId()
public String getBaseUrl()
@DataBoundSetter public void setBaseUrl(String baseUrl)
baseUrl
- the Bitbucket Server base URLpublic String getId()
@Nullable public String getServerName()
@DataBoundSetter public void setServerName(String serverName)
serverName
- the server namepublic FormValidation validate()
Copyright © 2016–2022. All rights reserved.