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

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

    Had this same issue but there was not stack thread. We deleted the job by using this snippet in the Jenkins Console. Replace jobname and buil dnumber with yours.

    def jobname = "Main/FolderName/BuildDefinition"
    def buildnum = 6
    Jenkins.instance.getItemByFullName(jobname).getBuildByNumber(buildnum).delete(); 
    

提交回复
热议问题