If you have a bunch of Jenkins jobs running and want to cancel them all, just use this Groovy script.