ng build命令无法通过jenkins build execute shell运行 [英] ng build command is not working via jenkins build execute shell
本文介绍了ng build命令无法通过jenkins build execute shell运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在jenkins构建执行区域中,我输入了以下命令:
In jenkins build execute area I put these command:
cd /var/lib/jenkins/workspace/test/
ng serve
这是屏幕截图:
我遇到这样的错误:
- cd/var/lib/jenkins/workspace/test/
- ng服务
- cd /var/lib/jenkins/workspace/test/
- ng serve
未定义环境变量TERM!
Environment variable TERM not defined!
构建步骤'Execute shell'将构建标记为失败完成:FAILURE
Build step 'Execute shell' marked build as failure Finished: FAILURE
节点v6.10.0
@ angular/cli:1.0.6
@angular/cli: 1.0.6
请帮助我解决此问题.
推荐答案
尝试一下,今天我进行了詹金斯集成.
Try this I did jenkins integration today.
npm run ng build
这很好.
这篇关于ng build命令无法通过jenkins build execute shell运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文