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

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

    Without having to use the script console or additional plugins, you can simply abort a build by entering /stop, /term, or /kill after the build URL in your browser.

    Quoting verbatim from the above link:

    Pipeline jobs can by stopped by sending an HTTP POST request to URL endpoints of a build.

    • /stop - aborts a Pipeline.
    • /term - forcibly terminates a build (should only be used if stop does not work.
    • /kill - hard kill a pipeline. This is the most destructive way to stop a pipeline and should only be used as a last resort.

提交回复
热议问题