Package jenkins.plugins.nodejs
Class NodeJSBuildWrapper.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<BuildWrapper>
hudson.tasks.BuildWrapperDescriptor
jenkins.plugins.nodejs.NodeJSBuildWrapper.DescriptorImpl
- Enclosing class:
- NodeJSBuildWrapper
@Symbol("nodejs")
@Extension
public static final class NodeJSBuildWrapper.DescriptorImpl
extends BuildWrapperDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckConfigId
(ItemGroup<?> context, String configId) Verify that the given configId exists in the given context.doFillConfigIdItems
(ItemGroup<?> context) Gather all defined npmrc config files.Returns all tools defined in the tool page.boolean
isApplicable
(AbstractProject<?, ?> item) Methods 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
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
isApplicable
- Specified by:
isApplicable
in classBuildWrapperDescriptor
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<BuildWrapper>
-
doFillNodeJSInstallationNameItems
Returns all tools defined in the tool page.- Parameters:
item
- context against check permission- Returns:
- a collection of tools name.
-
doFillConfigIdItems
Gather all defined npmrc config files.- Parameters:
context
- where lookup- Returns:
- a collection of user npmrc files.
-
doCheckConfigId
public FormValidation doCheckConfigId(@Nullable @AncestorInPath ItemGroup<?> context, @CheckForNull @QueryParameter String configId) Verify that the given configId exists in the given context.- Parameters:
context
- where lookupconfigId
- the identifier of an npmrc file- Returns:
- an validation form for the given npmrc file identifier.
-