Class SonarGlobalConfiguration

All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Serializable, OnMaster

@Extension(ordinal=100.0) public class SonarGlobalConfiguration extends GlobalConfiguration implements Serializable
Since 2.4 The global configuration was migrated from SonarPublisher to this component.
See Also:
  • Constructor Details

    • SonarGlobalConfiguration

      public SonarGlobalConfiguration()
    • SonarGlobalConfiguration

      public SonarGlobalConfiguration(Supplier<Jenkins> supplier)
  • Method Details

    • getInstallations

      public SonarInstallation[] getInstallations()
      Returns:
      all configured SonarInstallation
    • isBuildWrapperEnabled

      public boolean isBuildWrapperEnabled()
    • setInstallations

      public void setInstallations(SonarInstallation... installations)
    • setBuildWrapperEnabled

      public void setBuildWrapperEnabled(boolean enabled)
    • migrateData

      @Initializer(after=JOB_LOADED) public void migrateData()
      Attempts to migrate data from SonarPublished, which was previously holding the global configuration. It will refuse to migrate if a SonarQube installation already exists in this class. Migration will only be attempted once.
    • migrateCredentials

      @Initializer(after=JOB_LOADED) public void migrateCredentials()
    • configure

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

      public FormValidation doCheckMandatory(@QueryParameter String value)
    • get

      public static SonarGlobalConfiguration get()
    • doFillCredentialsIdItems

      public ListBoxModel doFillCredentialsIdItems(@QueryParameter String credentialsId)
    • doFillWebhookSecretIdItems

      public ListBoxModel doFillWebhookSecretIdItems(@QueryParameter String webhookSecretId)