使用 Jenkins 配置 Angular CLI 项目,ng build --env=prod 命令在 Jenkins - windows 环境中运行良好,但在 Jenkins - Unix中运行良好strong> 它抛出以下错误。尝试了以下选项但没有成功
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”。在运行它的机器上检查系统日志或类似内容。可能机器内存用完了,OOMKiller 把它拿出来了。
关于angularjs - Jenkins - 构建步骤 'Execute shell' 在 linux 环境中将构建标记为失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43904990/