Class NodeJSCommandInterpreter.NodeJsDescriptor

java.lang.Object
hudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<Builder>
jenkins.plugins.nodejs.NodeJSCommandInterpreter.NodeJsDescriptor
All Implemented Interfaces:
Saveable, OnMaster
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
  • Constructor Details

    • NodeJsDescriptor

      public NodeJsDescriptor()
  • Method Details

    • isApplicable

      public boolean isApplicable(Class<? extends AbstractProject> jobType)
      Specified by:
      isApplicable in class BuildStepDescriptor<Builder>
    • getDisplayName

      public String getDisplayName()
      Customise the name of this job step.
      Overrides:
      getDisplayName in class Descriptor<Builder>
      Returns:
      the builder name
    • getHelpFile

      public String getHelpFile()
      Return the help file.
      Overrides:
      getHelpFile in class Descriptor<Builder>
      Returns:
      the help file URL path
    • getInstallations

      public NodeJSInstallation[] getInstallations()
    • doFillConfigIdItems

      public ListBoxModel doFillConfigIdItems(@AncestorInPath ItemGroup<?> context)
      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 lookup
      configId - the identifier of an npmrc file
      Returns:
      an validation form for the given npmrc file identifier.