-
New Feature
-
Resolution: Fixed
-
Major
-
None
Hi, to make easier configure nodejs installations across multiple node and setup them to an internal nodejs.org repository would be great add support to the npm config file.
The npm config file is an ini file but with only one single section.
https://docs.npmjs.com/files/npmrc
This config file will take advantage of credential support to configure authentication in case of internal npm repository.
That I know, npm does not have an option where you could specify in the CLI the npmrc file, but
there are four relevant places where this file is lookup. It's also possible transform each settings into enviroment variable or in a CLI option.
- is duplicated by
-
JENKINS-30615 Allow specifying global NMP settings
-
- Closed
-
- relates to
-
JENKINS-35182 Support credential plugin to handle publish
-
- Closed
-
Just a question: your edit-config.jelly files includes a page named id-name-and-comment for the common attributes but from what I can see instead for show-config.jelly file common fields are rewritten from scratch (with readonly attribute). What do you think to create a common page also for view mode? so for example translations are inherited or changes to the base page will be reported to all extension point for free. (Please note that in 2.15.5 server credentials of maven settings in view mode are editable)
I have resolved doing a select widget (a dirty html/css work) that invoke a doCheckXyz method on Build descriptor delegating the task of verification on Config implementation.
Could I suggest:
The verify method could be also used to validate the content during supplyFile method after token replace. This reduce user analisys on build failure.
Keept in mind that in this way we could enforce the same failure behavior when the configuration file is handled directly by a custom build step (like maven or NodeJS) or ConfigFileBuildWrapper is used.