詹金斯(Jenkins)建立“退出0"后卡住了状态,并且需要很长时间才能退出该状态 [英] Jenkins build stuck after "exit 0" status, and its taking long time to exit from that
问题描述
我有几个Jenkins构建作业,它们使用npm
,msbuild
和单元测试用例执行步骤来编译.NET应用程序.
I have a few Jenkins build jobs for compiling a .NET application using npm
, msbuild
, and unit test case execution steps.
它显示build success
并在exit 0 status
之后挂起,因为下游作业被延迟并且在长时间等待后失败.
It shows build success
and hangs after exit 0 status
, because of that downstream jobs are delayed and failing after long waiting time.
是某些进程阻塞还是某些插件问题?
Is it some process blocking or some plugin issue?
PS:我不想使用build-timeout
插件,因为该版本已经显示出成功,但是该工作花费的时间太长了.
PS: I don't want to use build-timeout
plugin as the build is already showing success but taking too long to exist from that job.
推荐答案
我遇到了同样的问题,并在-jar选项之前的jenkins.xml中添加了"-DSoftKillWaitSeconds = 0".现在,工作对我来说正常执行. 链接到解决方案
I had the same issue and added"-DSoftKillWaitSeconds=0" in jenkins.xml before the -jar option. Now jobs execute normally for me. Link to solution
这篇关于詹金斯(Jenkins)建立“退出0"后卡住了状态,并且需要很长时间才能退出该状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!