Deprecated API
Contents
-
ClassDescriptionsince 1.13.0 plugin uses credentials-plugin to manage tokens. All configuration moved to
GitHubPluginConfig
which can be fetched viaGitHubPlugin.configuration()
. You can fetch corresponding config with creds byGitHubPluginConfig.findGithubConfig(Predicate)
which returns iterable over authorized nonnullGitHub
s matched your predicateworking theory is that this API is not required any more with theSCMEvent
based API, if wrong, please raise a JIRA
-
MethodDescriptionsee class javadoc. Now any instance return same GH. Please use new api to fetch anotheruse
GitHubPluginConfig.getConfigs()
instead.useGitHubPluginConfig.getHookUrl()
insteadUseGitHubPluginConfig.isManageHooks()
insteadsimply remove usage of this method, it ignored now. Should be removed after 20 sep 2016.rather treat this field as final and useGitHubPluginConfig.setHookSecretConfigs(java.util.List<org.jenkinsci.plugins.github.config.HookSecretConfig>)
overrideGHEventsSubscriber.isApplicable(Item)
instead.overrideGHEventsSubscriber.onEvent(GHSubscriberEvent)
instead.