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
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.Customise the name of this job step.boolean
isApplicable
(Class<? extends AbstractProject> jobType) Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
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
-
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
-
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
@POST 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.
-