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:
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.jenkinsci.lib.configprovider.model.Config
comment, content, id, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doVerify()
Perform a validation of the configuration.boolean
void
setNpm9Format
(boolean npm9Format) Sets if the generated .npmrc format is compatible with NPM version 9.Methods inherited from class org.jenkinsci.lib.configprovider.model.Config
getDescriptor, getProvider, getProviderId, setProviderId, toString
-
Constructor Details
-
NPMConfig
-
-
Method Details
-
getRegistries
-
doVerify
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
-