吞并命令在Jenkins中不被识别 [英] gulp command not recognized in Jenkins

查看:281
本文介绍了吞并命令在Jenkins中不被识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了gulp,它在我的cmd中运行良好。所以当我尝试一些吞咽命令时他们工作得很好。所以我在我的cmd中去这个路径:

$ $ $ code C:\程序文件(x86)\Jenkins\ workspace\project1

我可以运行gulp(它是我的Jenkins上的一个github项目)。
但是当我在Jenkins本身(localhost)中处理我的project1时,gulp命令无法识别。詹金斯不知道吞噬。



我如何在詹金斯整合吞噬?所以我的詹金斯会知道它的命令。我读了一些关于node.js和它的插件。
我也读了一些关于前端-maven-plugin /
的内容,但根本不清楚。

解决方案


$ b


管理Jenkins - >配置系统 - >全局属性:


blockquote>

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.

解决方案

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

Manage Jenkins-->Configure System-->Global Properties:

这篇关于吞并命令在Jenkins中不被识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆