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

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

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • 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() {/*...*/}

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

              Created:
              Updated: