Class GitHubSCMSource.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<jenkins.scm.api.SCMSource>
jenkins.scm.api.SCMSourceDescriptor
org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster, IconSpec, org.jenkinsci.plugins.structs.describable.CustomDescribableModel
Enclosing class:
GitHubSCMSource

@Symbol("github") @Extension public static class GitHubSCMSource.DescriptorImpl extends jenkins.scm.api.SCMSourceDescriptor implements org.jenkinsci.plugins.structs.describable.CustomDescribableModel
  • Field Details

  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • addAliases

      @Initializer(before=PLUGINS_STARTED) public static void addAliases()
    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<jenkins.scm.api.SCMSource>
    • customInstantiate

      @NonNull public Map<String,Object> customInstantiate(@NonNull Map<String,Object> arguments)
      Specified by:
      customInstantiate in interface org.jenkinsci.plugins.structs.describable.CustomDescribableModel
    • customUninstantiate

      @NonNull public org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable customUninstantiate(@NonNull org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable ud)
      Specified by:
      customUninstantiate in interface org.jenkinsci.plugins.structs.describable.CustomDescribableModel
    • doFillCredentialsIdItems

      public ListBoxModel doFillCredentialsIdItems(@CheckForNull @AncestorInPath Item context, @QueryParameter String apiUri, @QueryParameter String credentialsId)
    • doCheckCredentialsId

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckCredentialsId(@CheckForNull @AncestorInPath Item context, @QueryParameter String apiUri, @QueryParameter String repoOwner, @QueryParameter String value, @QueryParameter boolean configuredByUrl)
    • doValidateRepositoryUrlAndCredentials

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doValidateRepositoryUrlAndCredentials(@CheckForNull @AncestorInPath Item context, @QueryParameter String repositoryUrl, @QueryParameter String credentialsId, @QueryParameter String repoOwner)
    • doCheckIncludes

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckIncludes(@QueryParameter String value)
    • doCheckScanCredentialsId

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckScanCredentialsId(@CheckForNull @AncestorInPath Item context, @QueryParameter String apiUri, @QueryParameter String scanCredentialsId, @QueryParameter String repoOwner, @QueryParameter boolean configuredByUrl)
    • doCheckBuildOriginBranchWithPR

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckBuildOriginBranchWithPR(@QueryParameter boolean buildOriginBranch, @QueryParameter boolean buildOriginBranchWithPR, @QueryParameter boolean buildOriginPRMerge, @QueryParameter boolean buildOriginPRHead, @QueryParameter boolean buildForkPRMerge, @QueryParameter boolean buildForkPRHead)
    • doCheckBuildOriginPRHead

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckBuildOriginPRHead(@QueryParameter boolean buildOriginBranchWithPR, @QueryParameter boolean buildOriginPRMerge, @QueryParameter boolean buildOriginPRHead)
    • doCheckBuildForkPRHead

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckBuildForkPRHead(@QueryParameter boolean buildOriginBranch, @QueryParameter boolean buildOriginBranchWithPR, @QueryParameter boolean buildOriginPRMerge, @QueryParameter boolean buildOriginPRHead, @QueryParameter boolean buildForkPRMerge, @QueryParameter boolean buildForkPRHead)
    • doFillApiUriItems

      public ListBoxModel doFillApiUriItems()
    • isApiUriSelectable

      public boolean isApiUriSelectable()
    • doFillOrganizationItems

      public ListBoxModel doFillOrganizationItems(@CheckForNull @AncestorInPath Item context, @QueryParameter String apiUri, @QueryParameter String credentialsId, @QueryParameter String repoOwner) throws IOException
      Throws:
      IOException
    • doFillRepositoryItems

      public ListBoxModel doFillRepositoryItems(@CheckForNull @AncestorInPath Item context, @QueryParameter String apiUri, @QueryParameter String credentialsId, @QueryParameter String repoOwner, @QueryParameter boolean configuredByUrl) throws IOException
      Throws:
      IOException
    • getTraitsDescriptorLists

      public List<jenkins.scm.impl.form.NamedArrayList<? extends jenkins.scm.api.trait.SCMTraitDescriptor<?>>> getTraitsDescriptorLists()
    • getTraitsDefaults

      public List<jenkins.scm.api.trait.SCMSourceTrait> getTraitsDefaults()
      Overrides:
      getTraitsDefaults in class jenkins.scm.api.SCMSourceDescriptor
    • createCategories

      @NonNull protected jenkins.scm.api.SCMHeadCategory[] createCategories()
      Overrides:
      createCategories in class jenkins.scm.api.SCMSourceDescriptor