Class BitbucketServerConfiguration
java.lang.Object
hudson.model.AbstractDescribableImpl<BitbucketServerConfiguration>
com.atlassian.bitbucket.jenkins.internal.config.BitbucketServerConfiguration
- All Implemented Interfaces:
Describable<BitbucketServerConfiguration>
public class BitbucketServerConfiguration
extends AbstractDescribableImpl<BitbucketServerConfiguration>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBitbucketServerConfiguration(String adminCredentialsId, String baseUrl, String id) -
Method Summary
Modifier and TypeMethodDescriptionReturns the URL location of the server instanceFor a given item, returns a global credential provider.getGlobalCredentialsProvider(String context) Similar togetGlobalCredentialsProvider(Item)but without item.getId()Returns the name assigned to the server in JenkinsvoidsetBaseUrl(String baseUrl) Sets the URL location of the server instancevoidsetServerName(String serverName) Sets the name assigned to the server in Jenkinsvalidate()Checks that the configuration is validMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
BitbucketServerConfiguration
-
-
Method Details
-
getGlobalCredentialsProvider
For a given item, returns a global credential provider. The credentials are tracked and this should be the only way to fetch credentials.- Parameters:
item- which will use the credential.- Returns:
- credential provider
-
getGlobalCredentialsProvider
Similar togetGlobalCredentialsProvider(Item)but without item. This is usually a case when fetching credentials as part of `doFill` methods.- Parameters:
context- a context which will be logged- Returns:
- credential provider
-
getAdminCredentialsId
-
getBaseUrl
Returns the URL location of the server instance- Returns:
- the bitbucket server base URL
-
setBaseUrl
Sets the URL location of the server instance- Parameters:
baseUrl- the Bitbucket Server base URL
-
getId
-
getServerName
Returns the name assigned to the server in Jenkins- Returns:
- the server name
-
setServerName
Sets the name assigned to the server in Jenkins- Parameters:
serverName- the server name
-
validate
Checks that the configuration is valid- Returns:
- true if valid; false otherwise
-