简体   繁体   English

hudson.AbortException: Ansible 剧本执行失败 jenkins

[英]hudson.AbortException: Ansible playbook execution failed jenkins

I have triggered a build for my app in jenkins and it got failed by returning the following error我在 jenkins 中触发了我的应用程序的构建,但由于返回以下错误而失败

hudson.AbortException: Ansible playbook execution failed

Then I have reverted my changes and triggered it again even then the same error appeared with status fail.然后我恢复了我的更改并再次触发它,即使出现相同的错误状态失败。

Then I have triggered a build for other branch of the same project but it got success.然后我触发了同一项目的其他分支的构建,但它成功了。 I am new to Jenkins.我是 Jenkins 的新手。 Can anyone please help me understand the situation?谁能帮我了解一下情况?

First of all, Ansible playbooks can be very resource intensive.首先,Ansible playbook 可能会占用大量资源。 Especially when running against many hosts and/or using process forks, caching, etc.特别是在针对许多主机运行和/或使用进程分叉、缓存等时。

It's common to see Ansible process allocating a lot of system memory.经常看到 Ansible 进程分配大量系统 memory。 This can lead to an out-of-memory situation.这可能导致内存不足的情况。 Then the operating system picks and kills a running process in order to free the memory.然后操作系统选择并杀死一个正在运行的进程以释放 memory。 This might affect your running Jenkins or Ansible.这可能会影响您正在运行的 Jenkins 或 Ansible。

Check your system logs for these out-of-memory exceptions.检查您的系统日志以了解这些内存不足异常。

For Linux use dmesg -T | grep "Out of memory"对于 Linux 使用dmesg -T | grep "Out of memory" dmesg -T | grep "Out of memory" to filter out the relevant exceptions. dmesg -T | grep "Out of memory"过滤掉相关异常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM