Class TopicsTrait

java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMNavigatorTrait>
jenkins.scm.api.trait.SCMNavigatorTrait
org.jenkinsci.plugins.github_branch_source.TopicsTrait
All Implemented Interfaces:
ExtensionPoint, Describable<jenkins.scm.api.trait.SCMNavigatorTrait>

public class TopicsTrait extends jenkins.scm.api.trait.SCMNavigatorTrait
Decorates a SCMNavigatorContext with GitHub topics
  • Constructor Details

    • TopicsTrait

      @DataBoundConstructor public TopicsTrait(@NonNull String topicList)
      Stapler constructor.
      Parameters:
      topicList - a comma-separated list of topics
  • Method Details

    • getTopics

      @NonNull public List<String> getTopics()
      Returns the topics
      Returns:
      the topics
    • getTopicList

      @NonNull public String getTopicList()
    • decorateContext

      protected void decorateContext(jenkins.scm.api.trait.SCMNavigatorContext<?,?> context)
      Overrides:
      decorateContext in class jenkins.scm.api.trait.SCMNavigatorTrait