Package hudson.plugins.sonar
Class SonarGlobalConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
hudson.plugins.sonar.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:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) doCheckMandatory
(String value) doFillCredentialsIdItems
(String credentialsId) doFillWebhookSecretIdItems
(String webhookSecretId) static SonarGlobalConfiguration
get()
boolean
void
void
Attempts to migrate data from SonarPublished, which was previously holding the global configuration.void
setBuildWrapperEnabled
(boolean enabled) void
setInstallations
(SonarInstallation... installations) Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
SonarGlobalConfiguration
public SonarGlobalConfiguration() -
SonarGlobalConfiguration
-
-
Method Details
-
getInstallations
- Returns:
- all configured
SonarInstallation
-
isBuildWrapperEnabled
public boolean isBuildWrapperEnabled() -
setInstallations
-
setBuildWrapperEnabled
public void setBuildWrapperEnabled(boolean enabled) -
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
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) - Overrides:
configure
in classGlobalConfiguration
-
doCheckMandatory
-
get
-
doFillCredentialsIdItems
-
doFillWebhookSecretIdItems
-