lorenzvth7 lorenzvth7 - 1 year ago 178
Node.js Question

gulp command not recognized in Jenkins

I've installed gulp and it works well in my cmd. So when I'm trying the gulp commands they work well. So I'm going to this path in my cmd:

C:\Program Files (x86)\Jenkins\workspace\project1

And I can run gulp (its a github project on my Jenkins).
But when I'm working on my project1 in Jenkins itself (localhost), the gulp commands aren't recognized. Jenkins doesn't know gulp.

How do I have to integrate gulp in Jenkins? So my Jenkins will know its commands. I read something about node.js and its pluging.
I also read something about a frontend-maven-plugin/
but it isn't clear at all.

Answer Source

You need to add the glup path for jenkins so it knows where the command resides.

Manage Jenkins-->Configure System-->Global Properties: enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download