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

@Extension public class BitbucketPluginConfiguration extends GlobalConfiguration
  • Constructor Details

    • BitbucketPluginConfiguration

      public BitbucketPluginConfiguration()
  • Method Details

    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
      Overrides:
      configure in class GlobalConfiguration
    • getServerById

      public Optional<BitbucketServerConfiguration> getServerById(@CheckForNull String serverId)
    • getServerList

      public List<BitbucketServerConfiguration> 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

      public void setServerList(List<BitbucketServerConfiguration> serverList)
    • getValidServerList

      public List<BitbucketServerConfiguration> 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

      public List<BitbucketServerConfiguration> 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.
      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