Cancel queued builds and aborting executing builds using Groovy for Jenkins

前端 未结 9 2164
礼貌的吻别
礼貌的吻别 2020-12-01 00:28

For Jenkins using a Groovy System Script, is there a way to easily search the build queue and list of executing builds for some criteria (specifically a parameter that match

9条回答
  •  一个人的身影
    2020-12-01 01:20

    Referencie: https://xanderx.com/post/cancel-all-queued-jenkins-jobs/

    Run this in Manage Jenkins > Script Console:

    Jenkins.instance.queue.clear()
    

提交回复
热议问题