Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NodeJS jenkins plugin broken?

I have just installed the NodeJS plugin on Jenkins 1.526

https://wiki.jenkins-ci.org/display/JENKINS/NodeJS+Plugin

but on the master configuration the NodeJS auto-installer does not show up, is this plugin outdated?

like image 549
u123 Avatar asked Aug 13 '13 15:08

u123


1 Answers

works for me, but i had to restart the server for the option to appear

I see the option here: /jenkins/configure

my steps:

a) install this as normal

https://wiki.jenkins-ci.org/display/JENKINS/NodeJS+Plugin

b) then you go to the configure page

/jenkins/configure

c) NodeJS option should be under maven/git and ant installation options

d) Create NodeJS installiation

NodeJS- > NodeJS installations -> Add NodeJS -> Name = "NodeJS 0.11.10", tick "Install automatically", select "Install from nodejs.org", add "grunt-cli" to globally installed packages

e) Create a job and nodejs shell should be available as a build task "Execute NodeJS script"

eg do this for a simple hello world example, with echo hello world onto jenkins job output

var sys = require('sys');
sys.puts('NodeJS Test');
sys.puts('***************');
sys.puts('helloworld');
like image 182
aqm Avatar answered Oct 03 '22 09:10

aqm