【问题标题】:Jenkins - Build step 'Execute shell' marked build as failure in linux environmentJenkins - 构建步骤“执行 shell”在 linux 环境中将构建标记为失败
【发布时间】: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


【解决方案1】:

那里的日志中写着“Killed”。在运行它的机器上检查 syslog 或类似的东西。也许机器内存不足,OOMKiller 将其取出。

【讨论】:

  • 谢谢,增加内存后,显示正确的错误!
猜你喜欢
  • 2016-02-21
  • 2017-06-19
  • 2019-12-01
  • 2019-11-25
  • 2020-05-12
  • 1970-01-01
  • 1970-01-01
  • 2016-01-26
  • 1970-01-01
相关资源
最近更新 更多