Package jenkins.plugins.nodejs
Class NodeJSCommandInterpreter.NodeJsDescriptor
java.lang.Object
hudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<Builder>
jenkins.plugins.nodejs.NodeJSCommandInterpreter.NodeJsDescriptor
- Enclosing class:
- NodeJSCommandInterpreter
@Symbol("nodejsci")
@Extension
public static final class NodeJSCommandInterpreter.NodeJsDescriptor
extends BuildStepDescriptor<Builder>
Provides builder details for the job configuration page.
- Author:
- cliffano, Nikolas Falco
-
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
-
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.Customise the name of this job step.Return the help file.boolean
isApplicable
(Class<? extends AbstractProject> jobType) Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
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, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
NodeJsDescriptor
public NodeJsDescriptor()
-
-
Method Details
-
isApplicable
- Specified by:
isApplicable
in classBuildStepDescriptor<Builder>
-
getDisplayName
Customise the name of this job step.- Overrides:
getDisplayName
in classDescriptor<Builder>
- Returns:
- the builder name
-
getHelpFile
Return the help file.- Overrides:
getHelpFile
in classDescriptor<Builder>
- Returns:
- the help file URL path
-
getInstallations
-
doFillConfigIdItems
Gather all defined npmrc config files.- Parameters:
context
- where loopup- 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.
-