【发布时间】:2017-10-09 20:10:57
【问题描述】:
使用 Jenkins 配置 Angular CLI 项目,ng build --env=prod 命令在 Jenkins - windows 环境中运行良好,但在 Jenkins - Unix强>它抛出错误。尝试了以下选项,但没有运气
1. set +e
2 #!/bin/bash
[workspace] $ /bin/sh -xe /opt/tomcat8/temp/hudson2478899598123360122.sh
+ set +e
+ ng build --env=prod --bh=./
错误
63% building modules 772/861 modules 89 active ...er-pipe/dist/src/ng2-filter.module.jsKilled
Build step 'Execute shell' marked build as failure
【问题讨论】:
-
那里写着“Killed”。知道什么可能会杀死它吗?
-
不确定@burnettk,我可以知道如何找到它吗?
-
您可能会在运行它的机器上检查 syslog 或类似内容?胡乱猜测,但也许机器内存不足,OOMKiller 将其取出。我怀疑有人手动中止的构建会说“Killed”,但我不是 100% 确定。
-
当然,会检查并通知您。!谢谢。
-
@burnettk,谢谢这是因为系统内存。请发布它作为答案将接受它。
标签: angularjs linux jenkins angular-cli