Nvm in Jenkins pipeline

28 views
Skip to first unread message

Manoj Chander

unread,
Dec 21, 2020, 12:31:55 PM12/21/20
to jenkins...@googlegroups.com
Hi I have installed nvm and have nvm.sh under /home/Jenkins/.nvm.

Have configured NVM_DIR to Jenkins bashrc

How to use nvm to use specific version npm in my pipeline.

Stages {

Stage {
Sh
"""
Source~/.nvm
/home/Jenkins/. nvm/nvm.sh use 12.16.3
"""
}
}

Is not working .

Regards ,
manoj



Reply all
Reply to author
Forward
0 new messages