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
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Fields inherited from class jenkins.scm.api.SCMSourceDescriptor
categories
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
protected jenkins.scm.api.SCMHeadCategory[]
customInstantiate
(Map<String, Object> arguments) org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable
customUninstantiate
(org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable ud) doCheckBuildForkPRHead
(boolean buildOriginBranch, boolean buildOriginBranchWithPR, boolean buildOriginPRMerge, boolean buildOriginPRHead, boolean buildForkPRMerge, boolean buildForkPRHead) doCheckBuildOriginBranchWithPR
(boolean buildOriginBranch, boolean buildOriginBranchWithPR, boolean buildOriginPRMerge, boolean buildOriginPRHead, boolean buildForkPRMerge, boolean buildForkPRHead) doCheckBuildOriginPRHead
(boolean buildOriginBranchWithPR, boolean buildOriginPRMerge, boolean buildOriginPRHead) doCheckCredentialsId
(Item context, String apiUri, String repoOwner, String value, boolean configuredByUrl) doCheckIncludes
(String value) doCheckScanCredentialsId
(Item context, String apiUri, String scanCredentialsId, String repoOwner, boolean configuredByUrl) doFillCredentialsIdItems
(Item context, String apiUri, String credentialsId) doFillOrganizationItems
(Item context, String apiUri, String credentialsId, String repoOwner) doFillRepositoryItems
(Item context, String apiUri, String credentialsId, String repoOwner, boolean configuredByUrl) doValidateRepositoryUrlAndCredentials
(Item context, String repositoryUrl, String credentialsId, String repoOwner) List<jenkins.scm.api.trait.SCMSourceTrait>
List<jenkins.scm.impl.form.NamedArrayList<? extends jenkins.scm.api.trait.SCMTraitDescriptor<?>>>
boolean
Methods inherited from class jenkins.scm.api.SCMSourceDescriptor
forOwner, forOwner, forOwner, forOwner, getCategories, getIconClassName, getId, getPronoun, isApplicable, isUserInstantiable
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Field Details
-
defaultIncludes
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final String defaultIncludesDeprecated.- See Also:
-
defaultExcludes
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final String defaultExcludesDeprecated.- See Also:
-
ANONYMOUS
- See Also:
-
SAME
- See Also:
-
defaultBuildOriginBranch
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildOriginBranchDeprecated.- See Also:
-
defaultBuildOriginBranchWithPR
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildOriginBranchWithPRDeprecated.- See Also:
-
defaultBuildOriginPRMerge
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildOriginPRMergeDeprecated.- See Also:
-
defaultBuildOriginPRHead
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildOriginPRHeadDeprecated.- See Also:
-
defaultBuildForkPRMerge
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildForkPRMergeDeprecated.- See Also:
-
defaultBuildForkPRHead
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince("2.2.0") public static final boolean defaultBuildForkPRHeadDeprecated.- See Also:
-
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
addAliases
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<jenkins.scm.api.SCMSource>
-
customInstantiate
- Specified by:
customInstantiate
in interfaceorg.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 interfaceorg.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
-
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
- Overrides:
getTraitsDefaults
in classjenkins.scm.api.SCMSourceDescriptor
-
createCategories
@NonNull protected jenkins.scm.api.SCMHeadCategory[] createCategories()- Overrides:
createCategories
in classjenkins.scm.api.SCMSourceDescriptor
-