Class NodeJSCommandInterpreter.NodeJsDescriptor

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

      @POST public ListBoxModel doFillNodeJSInstallationNameItems(@Nullable @AncestorInPath Item item)
      Returns all tools defined in the tool page.
      Parameters:
      item - context against check permission
      Returns:
      a collection of tools name.
    • doFillConfigIdItems

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