Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40364

Support npm configuration file

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

      https://docs.npmjs.com/misc/config

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nikolas Falco
            Path:
            pom.xml
            src/main/java/jenkins/plugins/nodejs/NodeJSBuildWrapper.java
            src/main/java/jenkins/plugins/nodejs/NodeJSCommandInterpreter.java
            src/main/java/jenkins/plugins/nodejs/NodeJSConstants.java
            src/main/java/jenkins/plugins/nodejs/NodeJSUtils.java
            src/main/java/jenkins/plugins/nodejs/configfiles/NPMConfig.java
            src/main/java/jenkins/plugins/nodejs/configfiles/NPMRegistry.java
            src/main/java/jenkins/plugins/nodejs/configfiles/Npmrc.java
            src/main/java/jenkins/plugins/nodejs/configfiles/RegistryHelper.java
            src/main/java/jenkins/plugins/nodejs/configfiles/VerifyConfigProviderException.java
            src/main/resources/jenkins/plugins/nodejs/Messages.properties
            src/main/resources/jenkins/plugins/nodejs/Messages_fr.properties
            src/main/resources/jenkins/plugins/nodejs/Messages_it.properties
            src/main/resources/jenkins/plugins/nodejs/NodeJSBuildWrapper/config.jelly
            src/main/resources/jenkins/plugins/nodejs/NodeJSBuildWrapper/config.properties
            src/main/resources/jenkins/plugins/nodejs/NodeJSBuildWrapper/config_it.properties
            src/main/resources/jenkins/plugins/nodejs/NodeJSCommandInterpreter/config.jelly
            src/main/resources/jenkins/plugins/nodejs/NodeJSCommandInterpreter/config.properties
            src/main/resources/jenkins/plugins/nodejs/NodeJSCommandInterpreter/config_it.properties
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/NPMConfigProvider/newInstanceDetail.jelly
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/NPMConfigProvider/newInstanceDetail.properties
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/edit-config.jelly
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/edit-config.properties
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/show-config.jelly
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/show-config.properties
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/config.jelly
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/config.properties
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/help-credentialsId.html
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/help-scopes.html
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/help-url.html
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/show.jelly
            src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/show.properties
            src/main/resources/jenkins/plugins/nodejs/configfiles/template.npmrc
            src/test/java/jenkins/plugins/nodejs/NodeJSBuildWrapperTest.java
            src/test/java/jenkins/plugins/nodejs/NodeJSCommandInterpreterTest.java
            src/test/java/jenkins/plugins/nodejs/NpmrcFileSupplyTest.java
            src/test/java/jenkins/plugins/nodejs/configfiles/NPMConfigTest.java
            src/test/java/jenkins/plugins/nodejs/configfiles/NpmrcTest.java
            src/test/java/jenkins/plugins/nodejs/configfiles/RegistryHelperTest.java
            src/test/resources/jenkins/plugins/nodejs/configfiles/npmrc.config
            http://jenkins-ci.org/commit/nodejs-plugin/c1d918a2a3fb2224688aef0fe8a9426355718c5f
            Log:
            [FIX JENKINS-40364]

            Compare: https://github.com/jenkinsci/nodejs-plugin/compare/148305ef8c80...c1d918a2a3fb

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nikolas Falco Path: pom.xml src/main/java/jenkins/plugins/nodejs/NodeJSBuildWrapper.java src/main/java/jenkins/plugins/nodejs/NodeJSCommandInterpreter.java src/main/java/jenkins/plugins/nodejs/NodeJSConstants.java src/main/java/jenkins/plugins/nodejs/NodeJSUtils.java src/main/java/jenkins/plugins/nodejs/configfiles/NPMConfig.java src/main/java/jenkins/plugins/nodejs/configfiles/NPMRegistry.java src/main/java/jenkins/plugins/nodejs/configfiles/Npmrc.java src/main/java/jenkins/plugins/nodejs/configfiles/RegistryHelper.java src/main/java/jenkins/plugins/nodejs/configfiles/VerifyConfigProviderException.java src/main/resources/jenkins/plugins/nodejs/Messages.properties src/main/resources/jenkins/plugins/nodejs/Messages_fr.properties src/main/resources/jenkins/plugins/nodejs/Messages_it.properties src/main/resources/jenkins/plugins/nodejs/NodeJSBuildWrapper/config.jelly src/main/resources/jenkins/plugins/nodejs/NodeJSBuildWrapper/config.properties src/main/resources/jenkins/plugins/nodejs/NodeJSBuildWrapper/config_it.properties src/main/resources/jenkins/plugins/nodejs/NodeJSCommandInterpreter/config.jelly src/main/resources/jenkins/plugins/nodejs/NodeJSCommandInterpreter/config.properties src/main/resources/jenkins/plugins/nodejs/NodeJSCommandInterpreter/config_it.properties src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/NPMConfigProvider/newInstanceDetail.jelly src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/NPMConfigProvider/newInstanceDetail.properties src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/edit-config.jelly src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/edit-config.properties src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/show-config.jelly src/main/resources/jenkins/plugins/nodejs/configfiles/NPMConfig/show-config.properties src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/config.jelly src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/config.properties src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/help-credentialsId.html src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/help-scopes.html src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/help-url.html src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/show.jelly src/main/resources/jenkins/plugins/nodejs/configfiles/NPMRegistry/show.properties src/main/resources/jenkins/plugins/nodejs/configfiles/template.npmrc src/test/java/jenkins/plugins/nodejs/NodeJSBuildWrapperTest.java src/test/java/jenkins/plugins/nodejs/NodeJSCommandInterpreterTest.java src/test/java/jenkins/plugins/nodejs/NpmrcFileSupplyTest.java src/test/java/jenkins/plugins/nodejs/configfiles/NPMConfigTest.java src/test/java/jenkins/plugins/nodejs/configfiles/NpmrcTest.java src/test/java/jenkins/plugins/nodejs/configfiles/RegistryHelperTest.java src/test/resources/jenkins/plugins/nodejs/configfiles/npmrc.config http://jenkins-ci.org/commit/nodejs-plugin/c1d918a2a3fb2224688aef0fe8a9426355718c5f Log: [FIX JENKINS-40364] Compare: https://github.com/jenkinsci/nodejs-plugin/compare/148305ef8c80...c1d918a2a3fb
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nikolas Falco
            Path:
            src/main/resources/jenkins/plugins/nodejs/NodeJSBuildWrapper/config.jelly
            src/main/resources/jenkins/plugins/nodejs/NodeJSCommandInterpreter/config.jelly
            src/main/resources/lib/nodejs/select.jelly
            src/main/resources/lib/nodejs/taglib
            http://jenkins-ci.org/commit/nodejs-plugin/8d073ddaa1d3b34185ffdea9f2d22ad444c1438e
            Log:
            JENKINS-40364 Fix validation URL of configs combobox

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nikolas Falco Path: src/main/resources/jenkins/plugins/nodejs/NodeJSBuildWrapper/config.jelly src/main/resources/jenkins/plugins/nodejs/NodeJSCommandInterpreter/config.jelly src/main/resources/lib/nodejs/select.jelly src/main/resources/lib/nodejs/taglib http://jenkins-ci.org/commit/nodejs-plugin/8d073ddaa1d3b34185ffdea9f2d22ad444c1438e Log: JENKINS-40364 Fix validation URL of configs combobox
            Hide
            nfalco Nikolas Falco added a comment -

            Released in 1.0

            Show
            nfalco Nikolas Falco added a comment - Released in 1.0
            Hide
            mcsf M Chon added a comment -

            But how do I add an alternate .npmrc? There is only one listed in the dropdown list.

            Show
            mcsf M Chon added a comment - But how do I add an alternate .npmrc? There is only one listed in the dropdown list.
            Hide
            nfalco Nikolas Falco added a comment -

            In "manage jenkins" -> "Managed files"

            Have a look in the wiki page of NodeJS plugin

            Show
            nfalco Nikolas Falco added a comment - In "manage jenkins" -> "Managed files" Have a look in the wiki page of NodeJS plugin

              People

              • Assignee:
                nfalco Nikolas Falco
                Reporter:
                nfalco Nikolas Falco
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: