Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Stop all running and waiting builds/buildrequests #3894

Henry ·

Hi Robin, hi PMease,

i need to stop all currently running builds and buildrequests to empty my build queue by a groovy script, because I want to clean the nodes after that (e.g. empty local maven repository content and quickbuild agent workspace)

Is there a hidden feature like "stop/cancel all builds and buildrequests" ? Or can you provide me a script to do both, please?

All I could find was something like ... getBuilds(configuration.id) etc.

very grateful in advance (as usual :-))

Greetings
Henry

  • replies 2
  • views 363
  • stars 0
robinshen ADMIN ·

Hi Henry,

You may run below script on QB server to cancel all running build requests:

groovy:
system.buildEngine.cancelAllRequests();
Henry ·

Thanx you very much. I googled and searched for that a lot. Now it works fine.

have a nice day
Henry