Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 452
lvthillo Avatar asked May 12 '26 06:05

lvthillo


2 Answers

You need to add the gulp path for Jenkins so it knows where the command resides.

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

like image 171
mainframer Avatar answered May 13 '26 22:05

mainframer


If you have gulp defined as your project's dependency then you can also use it directly:

node_modules\.bin\gulp mytask

like image 31
Emil A. Avatar answered May 13 '26 21:05

Emil A.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!