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

前端 未结 27 1656
南旧
南旧 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:47

    I usually use jenkins-cli in such cases. You can download the jar from a page http://your-jenkins-host:PORT/cli . Then run

    java -jar jenkins-cli.jar delete-builds name_of_job_to_delete hanging_job_number
    

    Auxiliary info:

    You may also pass a range of builds like 350:400. General help available by running

    java -jar jenkins-cli.jar help
    

    Context command help for delete-builds by

    java -jar jenkins-cli.jar delete-builds
    

提交回复
热议问题