Gulp won't work in Jenkins

北城以北 提交于 2019-12-01 03:52:33

For making know where your gulp is you should define gulp to ENV globally (for all users) or just run gulp.js via node every time:

node node_modules\gulp\bin\gulp.js test

Remember that jenkins doesn't know anything about your user variables, this is made for clear testing. The only ENV variables it knows are the global ones.

Kyle

On your windows machine go to the Jenkins service properties and change the logon user to a user other than System for the Jenkins service. I used my logged on user credentials to get it to work and now I am running gulp commands to build from Jenkins on my windows slave with no problem all. node, npm and gulp commands are all recognized.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!