@Symbol(value="github")
@Extension
public static class GitHubSCMNavigator.DescriptorImpl
extends jenkins.scm.api.SCMNavigatorDescriptor
implements org.jenkins.ui.icon.IconSpec
Modifier and Type | Field and Description |
---|---|
static boolean |
defaultBuildForkPRHead
Deprecated.
|
static boolean |
defaultBuildForkPRMerge
Deprecated.
|
static boolean |
defaultBuildOriginBranch
Deprecated.
|
static boolean |
defaultBuildOriginBranchWithPR
Deprecated.
|
static boolean |
defaultBuildOriginPRHead
Deprecated.
|
static boolean |
defaultBuildOriginPRMerge
Deprecated.
|
static String |
defaultExcludes
Deprecated.
|
static String |
defaultIncludes
Deprecated.
|
static String |
SAME |
Constructor and Description |
---|
DescriptorImpl() |
Modifier and Type | Method and Description |
---|---|
protected jenkins.scm.api.SCMSourceCategory[] |
createCategories() |
hudson.util.FormValidation |
doCheckCredentialsId(hudson.model.Item context,
String apiUri,
String credentialsId)
Validates the selected credentials.
|
hudson.util.ListBoxModel |
doFillApiUriItems()
Returns the available GitHub endpoint items.
|
hudson.util.ListBoxModel |
doFillCredentialsIdItems(hudson.model.Item context,
String apiUri,
String credentialsId)
Populates the drop-down list of credentials.
|
String |
getDescription() |
String |
getDisplayName() |
String |
getIconClassName() |
String |
getIconFilePathPattern() |
String |
getPronoun() |
List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>> |
getTraitsDefaults() |
List<jenkins.scm.impl.form.NamedArrayList<? extends jenkins.scm.api.trait.SCMTraitDescriptor<?>>> |
getTraitsDescriptorLists()
Returns the
SCMTraitDescriptor instances grouped into categories. |
boolean |
isApiUriSelectable()
Returns
true if there is more than one GitHub endpoint configured, and consequently the UI should
provide the ability to select the endpoint. |
jenkins.scm.api.SCMNavigator |
newInstance(String name) |
addHelpFileRedirect, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") public static final String defaultIncludes
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") public static final String defaultExcludes
public static final String SAME
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") public static final boolean defaultBuildOriginBranch
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") public static final boolean defaultBuildOriginBranchWithPR
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") public static final boolean defaultBuildOriginPRMerge
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") public static final boolean defaultBuildOriginPRHead
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") public static final boolean defaultBuildForkPRMerge
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.DoNotUse.class) @RestrictedSince(value="2.2.0") public static final boolean defaultBuildForkPRHead
public String getPronoun()
getPronoun
in class jenkins.scm.api.SCMNavigatorDescriptor
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<jenkins.scm.api.SCMNavigator>
public String getDescription()
getDescription
in class jenkins.scm.api.SCMNavigatorDescriptor
public String getIconFilePathPattern()
getIconFilePathPattern
in class jenkins.scm.api.SCMNavigatorDescriptor
public String getIconClassName()
getIconClassName
in interface org.jenkins.ui.icon.IconSpec
getIconClassName
in class jenkins.scm.api.SCMNavigatorDescriptor
public jenkins.scm.api.SCMNavigator newInstance(String name)
newInstance
in class jenkins.scm.api.SCMNavigatorDescriptor
@NonNull protected jenkins.scm.api.SCMSourceCategory[] createCategories()
createCategories
in class jenkins.scm.api.SCMNavigatorDescriptor
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public hudson.util.FormValidation doCheckCredentialsId(@CheckForNull @AncestorInPath hudson.model.Item context, @QueryParameter String apiUri, @QueryParameter String credentialsId)
context
- the context.apiUri
- the end-point.credentialsId
- the credentials.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public hudson.util.ListBoxModel doFillCredentialsIdItems(@CheckForNull @AncestorInPath hudson.model.Item context, @QueryParameter String apiUri, @QueryParameter String credentialsId)
context
- the context.apiUri
- the end-point.credentialsId
- the existing selection;@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public hudson.util.ListBoxModel doFillApiUriItems()
public boolean isApiUriSelectable()
true
if there is more than one GitHub endpoint configured, and consequently the UI should
provide the ability to select the endpoint.true
if there is more than one GitHub endpoint configured.public List<jenkins.scm.impl.form.NamedArrayList<? extends jenkins.scm.api.trait.SCMTraitDescriptor<?>>> getTraitsDescriptorLists()
SCMTraitDescriptor
instances grouped into categories.SCMTraitDescriptor
instances.public List<jenkins.scm.api.trait.SCMTrait<? extends jenkins.scm.api.trait.SCMTrait<?>>> getTraitsDefaults()
getTraitsDefaults
in class jenkins.scm.api.SCMNavigatorDescriptor
Copyright © 2016–2020. All rights reserved.