[JIRA] (JENKINS-60151) Ability to specify nodejs version per build

27 views
Skip to first unread message

dustinbm@gmail.com (JIRA)

unread,
Nov 12, 2019, 6:27:02 PM11/12/19
to jenkinsc...@googlegroups.com
Dustin McBride created an issue
 
Jenkins / Improvement JENKINS-60151
Ability to specify nodejs version per build
Issue Type: Improvement Improvement
Assignee: Tomas Salazar
Components: nvm-wrapper-plugin
Created: 2019-11-12 23:26
Priority: Major Major
Reporter: Dustin McBride

We have several javascript and java projects that share one job. Several of the javascript projects use different versions of node. It would be nice if we could specify the version of node per build. This could be accomplished by either :

  1.  By using the .nvmrc file (this feature is partially supported however if a job does not have a .nvmcr file the build fails
  2.  By having the version field accepting a parameter variable 
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

dustinbm@gmail.com (JIRA)

unread,
Nov 12, 2019, 6:30:03 PM11/12/19
to jenkinsc...@googlegroups.com
Dustin McBride updated an issue
Change By: Dustin McBride
We have several javascript and java projects that share one job. Several of the javascript projects use different versions of node. It would be nice if we could specify the version of node per build. This could be accomplished by either :
#  By using the .nvmrc file (this feature is partially supported however if a job does not have a .nvmcr file the build fails )
#  By having the version field accepting a parameter variable 

dustinbm@gmail.com (JIRA)

unread,
Nov 12, 2019, 6:31:02 PM11/12/19
to jenkinsc...@googlegroups.com
Dustin McBride updated an issue
We have several javascript and java projects that share one job. Several of the javascript projects use different versions of node. It would be nice if we could specify the version of node per build. This could be accomplished by either :
#  By using the .nvmrc file (this feature is partially supported however if a job does not have a .nvmcr file the build fails)
#  By having the version field accepting accept a parameter variable 

stronk7@moodle.org (JIRA)

unread,
Dec 28, 2019, 12:07:02 PM12/28/19
to jenkinsc...@googlegroups.com
Eloy Lafuente updated an issue
Change By: Eloy Lafuente
Attachment: nodejsversion.png

stronk7@moodle.org (JIRA)

unread,
Dec 28, 2019, 12:08:02 PM12/28/19
to jenkinsc...@googlegroups.com
Eloy Lafuente updated an issue
Change By: Eloy Lafuente
Attachment: pipeline.png

stronk7@moodle.org (JIRA)

unread,
Dec 28, 2019, 12:12:03 PM12/28/19
to jenkinsc...@googlegroups.com
Eloy Lafuente commented on Improvement JENKINS-60151
 
Re: Ability to specify nodejs version per build

Hi,

I was looking about which is the current support for .nvmrc files in the plugin and arrived here. And now I'm confused (twice):

1. What does mean that .nvmrc "feature is partially supported" ? Is it supported or no?
2. I think it's already possible to define the nodejs version via param and then use it, at very least in pipelines. Here we have this and, so far, it's working ok.

Hope that suits (maybe) your needs Dustin McBride

And then, now I'm confused which "lts/carbon" we are getting installed (the explicit one passed as param or the one specified in our .nvmrc file. I would expect the explicit one to get precedence over the default one, in fact we added the .nvmrc recently and jobs are older than that.

So it would be great to know about 1) above and know the order of precedence (just aiming to take rid of the params here if really .nvmrc is supported.

Ciao

stronk7@moodle.org (JIRA)

unread,
Dec 28, 2019, 12:14:03 PM12/28/19
to jenkinsc...@googlegroups.com
Eloy Lafuente edited a comment on Improvement JENKINS-60151
Hi,

I was looking about which is the current support for {{.nvmrc}} files in the plugin and arrived here. And now I'm confused (twice):

1. What does mean that  {{.nvmrc}} "feature is partially supported" ? Is it supported or no?
2. I think it's already possible to define the nodejs version via param and then use it, at very least in pipelines. Here we have this and, so far, it's working ok.

!nodejsversion.png|thumbnail!  !pipeline.png|thumbnail!

Hope that suits (maybe) your needs [~dustinbm]


And then, now I'm confused which "lts/carbon" we are getting installed (the explicit one passed as param or the one specified in our {{.nvmrc}} file. I would expect the explicit one to get precedence over the default one, in fact we added the {{.nvmrc}} recently and jobs are older than that.

So it would be great to know about 1) above and know the order of precedence (just aiming to take get rid of the params here if really {{.nvmrc}} is supported ) .

Ciao :-)

Reply all
Reply to author
Forward
0 new messages