Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Interfaces
  • Classes
  • Fields
  • Methods
  • Constructors
  • Enum Constants
  • Deprecated Interfaces
    Interface
    Description
    com.cloudbees.jenkins.GitHubTrigger
    not used any more
  • Deprecated Classes
    Class
    Description
    com.cloudbees.jenkins.Credential
    since 1.13.0 plugin uses credentials-plugin to manage tokens. All configuration moved to GitHubPluginConfig which can be fetched via GitHubPlugin.configuration(). You can fetch corresponding config with creds by GitHubPluginConfig.findGithubConfig(Predicate) which returns iterable over authorized nonnull GitHubs matched your predicate
    com.cloudbees.jenkins.GitHubWebHook.Listener
    working theory is that this API is not required any more with the SCMEvent based API, if wrong, please raise a JIRA
  • Deprecated Fields
    Field
    Description
    org.jenkinsci.plugins.github.webhook.RequirePostWithGHHookPayload.Processor.SIGNATURE_HEADER
    Use SHA-256 signatures with X-Hub-Signature-256 header
  • Deprecated Methods
    Method
    Description
    com.cloudbees.jenkins.Credential.login()
    see class javadoc. Now any instance return same GH. Please use new api to fetch another
    com.cloudbees.jenkins.GitHubPushTrigger.DescriptorImpl.getCredentials()
    use GitHubPluginConfig.getConfigs() instead.
    com.cloudbees.jenkins.GitHubPushTrigger.DescriptorImpl.getDeprecatedHookUrl()
    use GitHubPluginConfig.getHookUrl()
    com.cloudbees.jenkins.GitHubPushTrigger.DescriptorImpl.getHookUrl()
    use GitHubPluginConfig.getHookUrl() instead
    com.cloudbees.jenkins.GitHubPushTrigger.DescriptorImpl.hasOverrideURL()
    use GitHubPluginConfig.isOverrideHookUrl()
    com.cloudbees.jenkins.GitHubPushTrigger.DescriptorImpl.isManageHook()
    Use GitHubPluginConfig.isManageHooks() instead
    com.cloudbees.jenkins.GitHubPushTrigger.getGitHubRepositories()
    Use GitHubRepositoryNameContributor.parseAssociatedNames(AbstractProject)
    com.cloudbees.jenkins.GitHubPushTrigger.onPost()
    com.cloudbees.jenkins.GitHubRepositoryNameContributor.parseAssociatedNames(AbstractProject<?, ?>)
    Use GitHubRepositoryNameContributor.parseAssociatedNames(Job)
    com.cloudbees.jenkins.GitHubRepositoryNameContributor.parseAssociatedNames(AbstractProject<?, ?>, Collection<GitHubRepositoryName>)
    Use GitHubRepositoryNameContributor.parseAssociatedNames(Item, Collection)
    com.cloudbees.jenkins.GitHubRepositoryNameContributor.parseAssociatedNames(Job<?, ?>)
    Use GitHubRepositoryNameContributor.parseAssociatedNames(Item)
    com.cloudbees.jenkins.GitHubRepositoryNameContributor.parseAssociatedNames(Job<?, ?>, Collection<GitHubRepositoryName>)
    Use GitHubRepositoryNameContributor.parseAssociatedNames(Item, Collection)
    com.cloudbees.jenkins.GitHubTrigger.getGitHubRepositories()
    Call GitHubRepositoryNameContributor.parseAssociatedNames(AbstractProject) instead.
    com.cloudbees.jenkins.GitHubTrigger.onPost()
    com.cloudbees.jenkins.GitHubWebHook.registerHookFor(Job)
    use GitHubWebHook.registerHookFor(Item)
    org.jenkinsci.plugins.github.config.GitHubPluginConfig.getHookSecretConfig()
    org.jenkinsci.plugins.github.config.GitHubPluginConfig.isOverrideHookURL()
    org.jenkinsci.plugins.github.config.GitHubPluginConfig.setHookSecretConfig(HookSecretConfig)
    org.jenkinsci.plugins.github.config.GitHubPluginConfig.setOverrideHookUrl(boolean)
    org.jenkinsci.plugins.github.config.GitHubServerConfig.setCustomApiUrl(boolean)
    simply remove usage of this method, it ignored now. Should be removed after 20 sep 2016.
    org.jenkinsci.plugins.github.config.HookSecretConfig.setCredentialsId(String)
    rather treat this field as final and use GitHubPluginConfig.setHookSecretConfigs(java.util.List<org.jenkinsci.plugins.github.config.HookSecretConfig>)
    org.jenkinsci.plugins.github.extension.GHEventsSubscriber.isApplicable(Job<?, ?>)
    override GHEventsSubscriber.isApplicable(Item) instead.
    org.jenkinsci.plugins.github.extension.GHEventsSubscriber.isApplicableFor(Job<?, ?>)
    use GHEventsSubscriber.isApplicableFor(Item).
    org.jenkinsci.plugins.github.extension.GHEventsSubscriber.onEvent(GHEvent, String)
    override GHEventsSubscriber.onEvent(GHSubscriberEvent) instead.
    org.jenkinsci.plugins.github.extension.GHEventsSubscriber.processEvent(GHEvent, String)
    use GHEventsSubscriber.processEvent(GHSubscriberEvent)
    org.jenkinsci.plugins.github.util.JobInfoHelpers.triggerFrom(Job<?, ?>, Class<T>)
    use JobInfoHelpers.triggerFrom(Item, Class)
    org.jenkinsci.plugins.github.webhook.GHWebhookSignature.matches(String)
    Use GHWebhookSignature.matches(String, SignatureAlgorithm) for explicit algorithm selection
    org.jenkinsci.plugins.github.webhook.GHWebhookSignature.sha1()
    Use GHWebhookSignature.sha256() for enhanced security
    org.jenkinsci.plugins.github.webhook.WebhookManager.registerFor(Job<?, ?>)
    use WebhookManager.registerFor(Item)
  • Deprecated Constructors
    Constructor
    Description
    org.jenkinsci.plugins.github.extension.GHSubscriberEvent(String, GHEvent, String)
    use GHSubscriberEvent(String, String, GHEvent, String) instead.
  • Deprecated Enum Constants
    Enum Constant
    Description
    org.jenkinsci.plugins.github.webhook.SignatureAlgorithm.SHA1
    Use SHA256 for enhanced security

Copyright © 2016–2025. All rights reserved.