Nvm in Jenkins pipeline

2020-12-21 Thread Manoj Chander
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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAGQNZuS0iXn2WAc8zJ1wFtCG72fgtSQ0PdS2jv1jxzdRCftm7Q%40mail.gmail.com.


Re: NVM on Jenkins

2020-06-15 Thread Martin Baillie
Hi, I am having a similar issue. Did you manage to find a solution?

On Tuesday, 19 May 2020 13:13:22 UTC+1, hawk base wrote:
>
> 1) How to install NVM on the Jenkins Slave?
>
> 2) How can we make the jobs to use that NVM so that we can install 
> multiple NodeJS / NPM version?
>
> Note: I am trying to follow this URL: 
> https://github.com/nvm-sh/nvm/blob/master/README.md#install--update-script 
> but 
> not able to understand as how it can be done on Jenkins and make use of the 
> job to use NVM.
>
>
> Note: I can't use NVM Wrapper or NodeJs as I don't have Manage Jenkins 
> Permissions.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bb4829fd-5761-42ab-a395-bee3a6cc8724o%40googlegroups.com.


NVM on Jenkins

2020-05-19 Thread hawk base


1) How to install NVM on the Jenkins Slave?

2) How can we make the jobs to use that NVM so that we can install multiple 
NodeJS / NPM version?

Note: I am trying to follow this URL: 
https://github.com/nvm-sh/nvm/blob/master/README.md#install--update-script but 
not able to understand as how it can be done on Jenkins and make use of the 
job to use NVM.


Note: I can't use NVM Wrapper or NodeJs as I don't have Manage Jenkins 
Permissions.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c582821f-734c-49fc-aeee-88a2671760f7%40googlegroups.com.