Class GitHubPluginConfig
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
org.jenkinsci.plugins.github.config.GitHubPluginConfig
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
Global configuration to store all GH Plugin settings
such as hook managing policy, credentials etc.
- Since:
- 1.13.0
- Author:
- lanwen (Merkushev Kirill)
-
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
Modifier and TypeFieldDescriptionstatic final GitHubPluginConfig
Helps to avoid null inGitHubPlugin.configuration()
static final String
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions()
boolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) doCheckHookUrl
(String value) Iterable
<org.kohsuke.github.GitHub> findGithubConfig
(com.google.common.base.Predicate<GitHubServerConfig> match) Filters all stored configs against given predicate then logs in as the given user and returns the non null connection objectsprotected XmlFile
Deprecated.getId()
To avoid long class name as id in xml tag name and config fileboolean
boolean
boolean
Deprecated.void
setConfigs
(List<GitHubServerConfig> configs) void
setHookSecretConfig
(HookSecretConfig hookSecretConfig) Deprecated.void
setHookSecretConfigs
(List<HookSecretConfig> hookSecretConfigs) void
setHookUrl
(String hookUrl) void
setOverrideHookUrl
(boolean overrideHookUrl) Deprecated.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, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Field Details
-
GITHUB_PLUGIN_CONFIGURATION_ID
- See Also:
-
EMPTY_CONFIG
Helps to avoid null inGitHubPlugin.configuration()
-
-
Constructor Details
-
GitHubPluginConfig
public GitHubPluginConfig() -
GitHubPluginConfig
-
-
Method Details
-
setConfigs
-
getConfigs
-
isManageHooks
public boolean isManageHooks() -
setHookUrl
-
setOverrideHookUrl
Deprecated. -
getHookUrl
- Returns:
- hook url used as endpoint to search and write auto-managed hooks in GH
- Throws:
GHPluginConfigException
- if default jenkins url is malformed
-
isOverrideHookUrl
public boolean isOverrideHookUrl() -
isOverrideHookURL
Deprecated. -
findGithubConfig
public Iterable<org.kohsuke.github.GitHub> findGithubConfig(com.google.common.base.Predicate<GitHubServerConfig> match) Filters all stored configs against given predicate then logs in as the given user and returns the non null connection objects -
actions
-
getId
To avoid long class name as id in xml tag name and config file- Overrides:
getId
in classDescriptor<GlobalConfiguration>
-
getConfigFile
- Overrides:
getConfigFile
in classDescriptor<GlobalConfiguration>
- Returns:
- config file with global
XStream
instance with enabled aliases inMigrator.enableAliases()
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<GlobalConfiguration>
-
doReRegister
-
doCheckHookUrl
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public FormValidation doCheckHookUrl(@QueryParameter String value) -
getHookSecretConfig
Deprecated. -
setHookSecretConfig
Deprecated. -
getHookSecretConfigs
-
setHookSecretConfigs
-
getRequiredGlobalConfigPagePermission
- Overrides:
getRequiredGlobalConfigPagePermission
in classDescriptor<GlobalConfiguration>
-