Class GitHubSCMNavigator.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<jenkins.scm.api.SCMNavigator>
jenkins.scm.api.SCMNavigatorDescriptor
org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.DescriptorImpl
- Enclosing class:
- GitHubSCMNavigator
@Symbol("github")
@Extension
public static class GitHubSCMNavigator.DescriptorImpl
extends jenkins.scm.api.SCMNavigatorDescriptor
implements IconSpec
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final booleanDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringFields inherited from class jenkins.scm.api.SCMNavigatorDescriptor
categoriesFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jenkins.scm.api.SCMSourceCategory[]doCheckCredentialsId(Item context, String apiUri, String credentialsId, String repoOwner) Validates the selected credentials.Returns the available GitHub endpoint items.doFillCredentialsIdItems(Item context, String apiUri, String credentialsId) Populates the drop-down list of credentials.List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>>List<jenkins.scm.impl.form.NamedArrayList<? extends jenkins.scm.api.trait.SCMTraitDescriptor<?>>>Returns theSCMTraitDescriptorinstances grouped into categories.booleanReturnstrueif there is more than one GitHub endpoint configured, and consequently the UI should provide the ability to select the endpoint.jenkins.scm.api.SCMNavigatornewInstance(String name) Methods inherited from class jenkins.scm.api.SCMNavigatorDescriptor
getCategories, getCategoryIdMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, 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:
-
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
-
getPronoun
- Overrides:
getPronounin classjenkins.scm.api.SCMNavigatorDescriptor
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<jenkins.scm.api.SCMNavigator>
-
getDescription
- Overrides:
getDescriptionin classjenkins.scm.api.SCMNavigatorDescriptor
-
getIconFilePathPattern
- Overrides:
getIconFilePathPatternin classjenkins.scm.api.SCMNavigatorDescriptor
-
getIconClassName
- Specified by:
getIconClassNamein interfaceIconSpec- Overrides:
getIconClassNamein classjenkins.scm.api.SCMNavigatorDescriptor
-
newInstance
- Overrides:
newInstancein classjenkins.scm.api.SCMNavigatorDescriptor
-
createCategories
@NonNull protected jenkins.scm.api.SCMSourceCategory[] createCategories()- Overrides:
createCategoriesin classjenkins.scm.api.SCMNavigatorDescriptor
-
doCheckCredentialsId
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckCredentialsId(@CheckForNull @AncestorInPath Item context, @QueryParameter String apiUri, @QueryParameter String credentialsId, @QueryParameter String repoOwner) Validates the selected credentials.- Parameters:
context- the context.apiUri- the end-point.credentialsId- the credentials.- Returns:
- validation results.
- Since:
- 2.2.0
-
doFillCredentialsIdItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillCredentialsIdItems(@CheckForNull @AncestorInPath Item context, @QueryParameter String apiUri, @QueryParameter String credentialsId) Populates the drop-down list of credentials.- Parameters:
context- the context.apiUri- the end-point.credentialsId- the existing selection;- Returns:
- the drop-down list.
- Since:
- 2.2.0
-
doFillApiUriItems
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public ListBoxModel doFillApiUriItems()Returns the available GitHub endpoint items.- Returns:
- the available GitHub endpoint items.
-
isApiUriSelectable
public boolean isApiUriSelectable()Returnstrueif there is more than one GitHub endpoint configured, and consequently the UI should provide the ability to select the endpoint.- Returns:
trueif there is more than one GitHub endpoint configured.
-
getTraitsDescriptorLists
public List<jenkins.scm.impl.form.NamedArrayList<? extends jenkins.scm.api.trait.SCMTraitDescriptor<?>>> getTraitsDescriptorLists()Returns theSCMTraitDescriptorinstances grouped into categories.- Returns:
- the categorized list of
SCMTraitDescriptorinstances. - Since:
- 2.2.0
-
getTraitsDefaults
@NonNull public List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>> getTraitsDefaults()- Overrides:
getTraitsDefaultsin classjenkins.scm.api.SCMNavigatorDescriptor
-