Class NPMConfig

java.lang.Object
org.jenkinsci.lib.configprovider.model.Config
jenkins.plugins.nodejs.configfiles.NPMConfig
All Implemented Interfaces:
Describable<org.jenkinsci.lib.configprovider.model.Config>, Serializable

public class NPMConfig extends org.jenkinsci.lib.configprovider.model.Config
A config/provider to handle the special case of a npmrc config file
Since:
1.0
Author:
Nikolas Falco
See Also:
  • Constructor Details

  • Method Details

    • getRegistries

      public List<NPMRegistry> getRegistries()
    • doVerify

      public void doVerify() throws VerifyConfigProviderException
      Perform a validation of the configuration.

      If validation pass then no VerifyConfigProviderException will be raised.

      Throws:
      VerifyConfigProviderException - in case this configuration is not valid.
    • isNpm9Format

      public boolean isNpm9Format()
    • setNpm9Format

      @DataBoundSetter public void setNpm9Format(boolean npm9Format)
      Sets if the generated .npmrc format is compatible with NPM version 9.
      Parameters:
      npm9Format - enable NPM version 9 or not