Open alibenmessaoud opened 5 years ago
I close this ticket after I found a solution by setting proxy settings in the Jenkinfile and it works.
node {
...
env.HTTP_PROXY = "http://proxy.threatpulse.net:8080"
env.HTTPS_PROXY = "http://proxy.threatpulse.net:8080"
...
}
Hello,
I don't know if it is duplicated or no but my question is about node downloading and the use of the proxy. Well, my project has 2 modules, the first is frontend (React) and the second is backend (Java). My goal is to package the React sources in the resource of the backend project. Locally everything is fine but on Jenkins (Behind a proxy), errors are as shown below as the build fails:
It stays blocked on the
Task :frontend-bo:npmSetup
(npmSetup
) task and it takes a long time before throwing the error. That's means it can't download npm from npmjs website.Is there any way to configure the proxy on these tasks ?
I used this configuration too but it didn't work too.
Thanks.