
The version of npm that ships with trusty is able to upgrade itself to npm v2, but cannot upgrade to npm v3. Furthermore, performing a staged upgrade picks up the default `profile` parameter from npm, so that value has to be overridden globally in order to ensure that /usr/bin is not polluted. This patch adds the following: - A staged upgrade step, triggered when the detected version of npm is "1", to upgrade to version 2. - A new global npmrc configuration file, containing the profile setting. - Renamed jenkins/global npmrc templates. Values that made more sense to keep globally have been moved there. Change-Id: Ia633ccabb49d74a10c904a6e8ba73945d77fb32d
11 lines
324 B
Plaintext
11 lines
324 B
Plaintext
<%
|
|
require 'base64'
|
|
%>
|
|
init.author.name=<%= jenkins_gitfullname %>
|
|
init.author.email=<%= jenkins_gitemail %>
|
|
init.author.url=<%= npm_userurl %>
|
|
|
|
//registry.npmjs.org/:username=<%= npm_username %>
|
|
//registry.npmjs.org/:_password=<%= Base64.encode64(npm_userpassword) %>
|
|
//registry.npmjs.org/:email=<%= jenkins_gitemail %>
|