Allow to define a default global configId that would be used in the pipeline when no configId is provided

XMLWordPrintable

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Trivial
    • Component/s: nodejs-plugin
    • None

      This issue is a follow up of JENKINS-30615.

      Maven plugin allows to define a global default settings file (thanks to config-file-plugin) like this:

      Thanks to this, the pipeline Maven step can be simply defined as:

      withMaven(){/*...*/} 

      This simple block will automatically use the global settings file.

      It would be great if nodejs-plugin provided the same feature for .npmrc files provided by config-file-plugin.

      It would allow in this case to replace this:

      nodejs(configId: 'default-global-config') {/*...*/}

      With:

       nodejs() {/*...*/}

            Assignee:
            Nikolas Falco
            Reporter:
            Réda Housni Alaoui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: