How to stop an unstoppable zombie job on Jenkins without restarting the server?

前端 未结 27 1647
南旧
南旧 2020-11-27 09:18

Our Jenkins server has a job that has been running for three days, but is not doing anything. Clicking the little X in the corner does nothing, and the console output log do

27条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 09:37

    I've looked at the Jenkins source and it appears that what I'm trying to do is impossible, because stopping a job appears to be done via a Thread interrupt. I have no idea why the job is hanging though..

    Edit:

    Possible reasons for unstoppable jobs:

    • if Jenkins is stuck in an infinite loop, it can never be aborted.
    • if Jenkins is doing a network or file I/O within the Java VM (such as lengthy file copy or SVN update), it cannot be aborted.

提交回复
热议问题