Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 詹金斯-构建步骤&x27;执行shell';在linux环境中将生成标记为失败_Angularjs_Linux_Jenkins_Angular Cli - Fatal编程技术网

Angularjs 詹金斯-构建步骤&x27;执行shell';在linux环境中将生成标记为失败

Angularjs 詹金斯-构建步骤&x27;执行shell';在linux环境中将生成标记为失败,angularjs,linux,jenkins,angular-cli,Angularjs,Linux,Jenkins,Angular Cli,使用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

使用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

那里的日志上写着“被杀”。检查正在运行的计算机上的系统日志或类似信息。可能是机器内存不足,OOMKiller把它取了出来。

上面写着“死亡”。知道是什么杀死了它吗?不确定@burnettk,我可以知道如何找到它吗?你可以在它运行的机器上检查syslog或类似的东西吗?胡乱猜测,但可能是机器内存不足,奥姆基勒把它取了出来。我怀疑有人手动中止的构建会说“已终止”,但我不是100%确定。当然,我会检查并让您知道。!谢谢。@burnettk,谢谢,这是因为系统内存。请把它贴出来,因为答案会接受。谢谢,在增加内存后,它显示了正确的错误。!