Package com.cloudbees.jenkins
Class GitHubPushTrigger.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<Trigger<?>>
hudson.triggers.TriggerDescriptor
com.cloudbees.jenkins.GitHubPushTrigger.DescriptorImpl
- Enclosing class:
GitHubPushTrigger
@Extension
@Symbol("githubPush")
public static class GitHubPushTrigger.DescriptorImpl
extends TriggerDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
void
Used to cleanup after migrationvoid
Used to cleanup after migrationdoCheckHookRegistered
(Item item) Checks that repo defined in this item is not in administrative monitor as failed to be registered.get()
protected XmlFile
Uses global xstream to enable migration alias used inMigrator.enableCompatibilityAliases()
Deprecated.Deprecated.Deprecated.useGitHubPluginConfig.getHookUrl()
insteadboolean
Deprecated.boolean
isApplicable
(Item item) boolean
Deprecated.UseGitHubPluginConfig.isManageHooks()
insteadMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, 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
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
isApplicable
- Specified by:
isApplicable
in classTriggerDescriptor
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<Trigger<?>>
-
isManageHook
Deprecated.UseGitHubPluginConfig.isManageHooks()
insteadTrue if Jenkins should auto-manage hooks. -
getHookUrl
Deprecated.useGitHubPluginConfig.getHookUrl()
insteadReturns the URL that GitHub should post.- Throws:
GHPluginConfigException
-
getCredentials
Deprecated.useGitHubPluginConfig.getConfigs()
instead.- Returns:
- null after migration
-
getDeprecatedHookUrl
Deprecated.Used only for migration- Returns:
- null after migration
-
clearDeprecatedHookUrl
public void clearDeprecatedHookUrl()Used to cleanup after migration -
clearCredentials
public void clearCredentials()Used to cleanup after migration -
hasOverrideURL
Deprecated. -
getConfigFile
Uses global xstream to enable migration alias used inMigrator.enableCompatibilityAliases()
- Overrides:
getConfigFile
in classDescriptor<Trigger<?>>
-
get
-
allowsHookUrlOverride
public static boolean allowsHookUrlOverride() -
doCheckHookRegistered
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckHookRegistered(@AncestorInPath Item item) Checks that repo defined in this item is not in administrative monitor as failed to be registered. If that so, shows warning with some instructions- Parameters:
item
- - to check against. Should be not null and have at least one repo defined- Returns:
- warning or empty string
- Since:
- 1.17.0
-
GitHubPluginConfig.getConfigs()
instead.