Package org.jenkinsci.plugins.github
Class GitHubPlugin
java.lang.Object
hudson.Plugin
org.jenkinsci.plugins.github.GitHubPlugin
- All Implemented Interfaces:
Saveable
,org.kohsuke.stapler.StaplerProxy
Main entry point for this plugin
Launches migration from old config versions
Contains helper method to get global plugin configuration - configuration()
- Author:
- lanwen (Merkushev Kirill)
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.Plugin
Plugin.DummyImpl
-
Field Summary
Fields inherited from class hudson.Plugin
SKIP_PERMISSION_CHECK
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Launched before plugin starts Adds alias forGitHubPlugin
to simplify resulting xml.static GitHubPluginConfig
Shortcut method for getting instance ofGitHubPluginConfig
.static void
Launches migration after all extensions have been augmented as we need to ensure that the credentials plugin has been initialized.Methods inherited from class hudson.Plugin
configure, configure, doDynamic, getConfigXml, getTarget, getWrapper, load, postInitialize, save, setServletContext, start, stop
-
Constructor Details
-
GitHubPlugin
public GitHubPlugin()
-
-
Method Details
-
addXStreamAliases
@Initializer(before=SYSTEM_CONFIG_LOADED) @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public static void addXStreamAliases()Launched before plugin starts Adds alias forGitHubPlugin
to simplify resulting xml. -
runMigrator
@Initializer(after=EXTENSIONS_AUGMENTED, before=JOB_LOADED) public static void runMigrator() throws ExceptionLaunches migration after all extensions have been augmented as we need to ensure that the credentials plugin has been initialized. We need ensure that migrator will run after xstream aliases will be added.- Throws:
Exception
- See Also:
-
configuration
Shortcut method for getting instance ofGitHubPluginConfig
.- Returns:
- configuration of plugin
-