• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • nodejs-plugin
    • Linux, Jenkins 1.612, NodeJS-plugin 0.2.1

      I'd like to set properties in the .npmrc after NPM is installed. Specifically, I'd like to set the 'registry' option to point to a local registry, as mentioned here: https://books.sonatype.com/nexus-book/reference/npm-configuring.html
      I couldn't find a way to specify this now, so could this be added?

          [JENKINS-30615] Allow specifying global NMP settings

          Jeroen van der Vegt created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 165727 ] New: JNJira + In-Review [ 182113 ]

          Nikolas Falco added a comment -

          For portable and secure configuration the config-file-plugin could be useful

          Nikolas Falco added a comment - For portable and secure configuration the config-file-plugin could be useful
          Nikolas Falco made changes -
          Link New: This issue depends on JENKINS-40364 [ JENKINS-40364 ]

          Nikolas Falco added a comment -

          Just now a workaround you could use config-file-plugin.
          Configure a "Custom file", put there your npm settings and then in the job configuration enable Provide Configuration files settings and as target put ${WORKSPACE}/.npmrc
          That location is one of 4/5 default location where npm lookup for the configuration file.
          That file will be deleted after jenkins job ends or is stopped.

          Nikolas Falco added a comment - Just now a workaround you could use config-file-plugin. Configure a " Custom file ", put there your npm settings and then in the job configuration enable Provide Configuration files settings and as target put ${WORKSPACE}/.npmrc That location is one of 4/5 default location where npm lookup for the configuration file. That file will be deleted after jenkins job ends or is stopped.
          Nikolas Falco made changes -
          Link Original: This issue depends on JENKINS-40364 [ JENKINS-40364 ]
          Nikolas Falco made changes -
          Link New: This issue duplicates JENKINS-40364 [ JENKINS-40364 ]

          Nikolas Falco added a comment -

          This feature is totally supported by implementation of JENKINS-40364

          Nikolas Falco added a comment - This feature is totally supported by implementation of JENKINS-40364
          Nikolas Falco made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Nikolas Falco made changes -
          Link New: This issue is duplicated by JENKINS-42675 [ JENKINS-42675 ]

            Unassigned Unassigned
            jvetechno Jeroen van der Vegt
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: