Class GitHubSCMSourceStatusChecksTrait.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<T>
jenkins.scm.api.trait.SCMTraitDescriptor<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTraitDescriptor
io.jenkins.plugins.checks.github.status.GitHubSCMSourceStatusChecksTrait.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
GitHubSCMSourceStatusChecksTrait

@Symbol("gitHubStatusChecks") @Extension @Discovery public static class GitHubSCMSourceStatusChecksTrait.DescriptorImpl extends jenkins.scm.api.trait.SCMSourceTraitDescriptor
Descriptor implementation for GitHubSCMSourceStatusChecksTrait.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Returns the display name.
      Overrides:
      getDisplayName in class Descriptor<jenkins.scm.api.trait.SCMSourceTrait>
      Returns:
      "Status Checks Properties"
    • getContextClass

      public Class<? extends jenkins.scm.api.trait.SCMSourceContext> getContextClass()
      The GitHubSCMSourceStatusChecksTrait is only applicable to GitHubSCMSourceContext.
      Overrides:
      getContextClass in class jenkins.scm.api.trait.SCMSourceTraitDescriptor
      Returns:
      GitHubSCMSourceContext.class
    • getSourceClass

      public Class<? extends jenkins.scm.api.SCMSource> getSourceClass()
      The GitHubSCMSourceStatusChecksTrait is only applicable to GitHubSCMSource.
      Overrides:
      getSourceClass in class jenkins.scm.api.trait.SCMSourceTraitDescriptor
      Returns:
      GitHubSCMSource.class
    • doCheckName

      public FormValidation doCheckName(@QueryParameter String name)
      Checks if the name of status checks is valid.
      Parameters:
      name - name of status checks
      Returns:
      ok if the name is not empty