Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins build stuck after "exit 0" status, and its taking long time to exit from that

Tags:

jenkins

I have a few Jenkins build jobs for compiling a .NET application using npm, msbuild, and unit test case execution steps.

It shows build success and hangs after exit 0 status, because of that downstream jobs are delayed and failing after long waiting time.

enter image description here

Is it some process blocking or some plugin issue?

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.

like image 929
sanath meti Avatar asked Aug 29 '18 11:08

sanath meti


1 Answers

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

like image 69
300hitter Avatar answered Sep 27 '22 22:09

300hitter