Class BitbucketPluginConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
com.atlassian.bitbucket.jenkins.internal.config.BitbucketPluginConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) getServerById(String serverId) Returns a list of all servers that have been configured by the user.Returns a list of all servers that have been configured by the user and pass the process() function with no errors.getValidServerListByName(String serverName) Returns a list of all servers configured by the user matching the provided name, and also passing the process() function with no errors.booleanDetermines if any servers have been incorrectly configuredvoidsetServerList(List<BitbucketServerConfiguration> serverList) Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
BitbucketPluginConfiguration
public BitbucketPluginConfiguration()
-
-
Method Details
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) - Overrides:
configurein classGlobalConfiguration
-
getServerById
-
getServerList
Returns a list of all servers that have been configured by the user. This can include incorrectly or illegally defined servers.- Returns:
- a list of all configured servers
-
setServerList
-
getValidServerList
Returns a list of all servers that have been configured by the user and pass the process() function with no errors.- Returns:
- a list of all valid configured servers
-
getValidServerListByName
Returns a list of all servers configured by the user matching the provided name, and also passing the process() function with no errors.- Parameters:
serverName- the name to search for- Returns:
- a list of all valid configured servers with a matching serverName
-
hasAnyInvalidConfiguration
public boolean hasAnyInvalidConfiguration()Determines if any servers have been incorrectly configured- Returns:
- true if any server returns an error during validation; false otherwise
-