Search code examples
javabatch-filejenkinsjaragent

Jenkins hangs after running jar file


I am trying to execute a jar file via Jenkins on a slave node. After the jar is executed, jenkins hangs and does not stop running. My jar is on a windows machine, the slave node is started as Java Web Start agent.

enter image description here


Solution

  • I added System.exit(0); and it seems to be working.