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,Loadable,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.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GitHubPluginConfigHelps to avoid null inGitHubPlugin.configuration()static final StringFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions()booleanconfigure(org.kohsuke.stapler.StaplerRequest2 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 XmlFileDeprecated.getId()To avoid long class name as id in xml tag name and config filebooleanbooleanbooleanDeprecated.voidsetConfigs(List<GitHubServerConfig> configs) voidsetHookSecretConfig(HookSecretConfig hookSecretConfig) Deprecated.voidsetHookSecretConfigs(List<HookSecretConfig> hookSecretConfigs) voidsetHookUrl(String hookUrl) voidsetOverrideHookUrl(boolean overrideHookUrl) Deprecated.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, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, 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:
getIdin classDescriptor<GlobalConfiguration>
-
getConfigFile
- Overrides:
getConfigFilein classDescriptor<GlobalConfiguration>- Returns:
- config file with global
XStreaminstance with enabled aliases inMigrator.enableAliases()
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
getDisplayName
- Overrides:
getDisplayNamein 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:
getRequiredGlobalConfigPagePermissionin classDescriptor<GlobalConfiguration>
-