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
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
allowsHookUrlOverride()
void
clearCredentials()
Used to cleanup after migrationvoid
clearDeprecatedHookUrl()
Used to cleanup after migrationFormValidation
doCheckHookRegistered(Item item)
Checks that repo defined in this item is not in administrative monitor as failed to be registered.static GitHubPushTrigger.DescriptorImpl
get()
protected XmlFile
getConfigFile()
Uses global xstream to enable migration alias used inMigrator.enableCompatibilityAliases()
List<Credential>
getCredentials()
Deprecated.useGitHubPluginConfig.getConfigs()
instead.URL
getDeprecatedHookUrl()
Deprecated.String
getDisplayName()
URL
getHookUrl()
Deprecated.useGitHubPluginConfig.getHookUrl()
insteadboolean
hasOverrideURL()
Deprecated.boolean
isApplicable(Item item)
boolean
isManageHook()
Deprecated.UseGitHubPluginConfig.isManageHooks()
instead-
Methods 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
-
-
-
-
Method Detail
-
isApplicable
public boolean isApplicable(Item item)
- Specified by:
isApplicable
in classTriggerDescriptor
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<Trigger<?>>
-
isManageHook
@Deprecated public boolean isManageHook()
Deprecated.UseGitHubPluginConfig.isManageHooks()
insteadTrue if Jenkins should auto-manage hooks.
-
getHookUrl
@Deprecated public URL getHookUrl() throws GHPluginConfigException
Deprecated.useGitHubPluginConfig.getHookUrl()
insteadReturns the URL that GitHub should post.- Throws:
GHPluginConfigException
-
getCredentials
@Deprecated public List<Credential> getCredentials()
Deprecated.useGitHubPluginConfig.getConfigs()
instead.- Returns:
- null after migration
-
getDeprecatedHookUrl
@Deprecated public URL 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 public boolean hasOverrideURL()
Deprecated.
-
getConfigFile
protected XmlFile getConfigFile()
Uses global xstream to enable migration alias used inMigrator.enableCompatibilityAliases()
- Overrides:
getConfigFile
in classDescriptor<Trigger<?>>
-
get
public static GitHubPushTrigger.DescriptorImpl 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
-
-