-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
linux
When I prepare a build node in advance with specific node versions tied to nvm aliases in user Jenkins home, those aliases are not found and used by nvm-wrapper plugin
Set up:
as user jenkins, nvm install v12.19.0
as use jenkins nvm alias v12_current v12.19.0
In Jenkins pipeline step, call nvm('v12_current'){....}
Expect:
plugin looks for .nvm/.nvm.sh in jenkins home dir
plugin finds that nvm is installed
plugin uses v12_current
Find:
plugin looks where expected
plugin sees nvm already installed
directly calling nvm list from sh() shows installed versions and aliases are in fact present
plugin fails with 'Version 'v12_current' is not found - try `nvm ls-remote` to browse available versions
Why it matters: preparing versions with aliases minimizes downloads and allows a stable contract sprint to sprint.