

#Npm config set registry http code
environment variables (of the build) to perform the replace tokenĪdded a comment - 22:09 Code changed in jenkins.provides a non accessible path where place the file (with write permissions).
#Npm config set registry http install
Log: JENKINS-42675 Permit to select a npm user config for each NodeJS installation, but when the install should be performed to generate the content of NPMConfig file an instance of build is needed because: Src/main/resources/jenkins/plugins/nodejs/tools/NodeJSInstaller/global_it.properties Src/main/resources/jenkins/plugins/nodejs/tools/NodeJSInstallation/config.properties Src/main/resources/jenkins/plugins/nodejs/tools/NodeJSInstallation/config.jelly Src/main/resources/jenkins/plugins/nodejs/NodeJSBuildWrapper/config.jelly Src/main/java/jenkins/plugins/nodejs/tools/NodeJSInstaller.java Src/main/java/jenkins/plugins/nodejs/tools/NodeJSInstallation.java Src/main/java/jenkins/plugins/nodejs/NodeJSBuildWrapper.java

All enviroment variables with that prefix are considered by npm like written in a.

In real it's a little bit complicated becuase some global package could have scope that refer to a different should support npmrc in global package and taking care about all registry and foreach one check against jenkins no proxy and make a mix behavior to support also old version of npm.Īnyway remember that you could setup registry and no_proxy as global variable prefixed by npm_config_ as described in my previous post. If I understand right only npm >= 3 support no_proxy, and only as enviroment variable ( details here ) The jenkins no proxy value is validated against the default npm registry URL, so if you add in no proxy Jenkins settings the http_proxy and https_proxy are not set during npm install -g action. Set no_proxy environment variable at Jenkins startup -> it could have other side effect on other Jenkins features.Īdded a comment - 19:01 - edited Actually is the only actual default registry for global packages. Set -registry parameter in "Global npm packages to install" set no_proxy environment variable at Jenkins startup -> it could have other side effect on other Jenkins features.Īdded a comment - 13:11 I agree with you regarding the global installation mainly concern 3rd party tools like bower, gulp, etc.set -registry parameter in "Global npm packages to install".I change the priority to Major because to sum up, it involves two workarounds now: The NodeJS plugin should be able to set no_proxy variable to deal with such requested feature. I also try -noproxy or -no_proxy option without any positive result.Īs workaround I set no_proxy environment variable beside JENKINS_HOME in my nf script -> I can access to the internal repo now when Jenkins settings are enabled. I tried to set -no-proxy "" without any success. The problem now if I set Jenkins proxy settings, the "No proxy" setting is ignored by "Global Tools Configuration" and I get HTTP 403. It's our case.īut in our company we use a corporate registry to achieve better network performance and avoid external traffic. I agree with you regarding the global installation mainly concern 3rd party tools like bower, gulp, etc.
