Currently I met one problem about Jenkins.
The ex-projects are using Angular 4 with node version 8.
The new project is using Angular 8 with node version 12.
Is there any way to config multiple node version on Jenkins?
Currently I met one problem about Jenkins.
The ex-projects are using Angular 4 with node version 8.
The new project is using Angular 8 with node version 12.
Is there any way to config multiple node version on Jenkins?
I recommend you to install nvm by default on your agents and edit the version you want to use by a simple command :
nvm use 12.4
Why?
Because installing a Jenkins plugin requires maintenance and I personally ended up with the above solution because it's more flexible and you have more control.
You can use Nvm Wrapper Plugin to manage Node version with diff projects. https://wiki.jenkins.io/display/JENKINS/Nvm+Wrapper+Plugin