Class GitHubSCMSource.DescriptorImpl

  • All Implemented Interfaces:
    Saveable, 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
    • Constructor Detail

      • DescriptorImpl

        public DescriptorImpl()
    • Method Detail

      • 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 value)
      • doValidateRepositoryUrlAndCredentials

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public FormValidation doValidateRepositoryUrlAndCredentials​(@CheckForNull @AncestorInPath
                                                                    Item context,
                                                                    @QueryParameter
                                                                    String repositoryUrl,
                                                                    @QueryParameter
                                                                    String credentialsId)
      • 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)
      • 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()
      • 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