Skip to content

Instantly share code, notes, and snippets.

View brandonfl's full-sized avatar

Fontany--Legall Brandon brandonfl

View GitHub Profile
# original author: BrandonFL
# require gamedig: npm install -g gamedig
import subprocess
import json
class GamedigQuery(object):
def __init__(self, game, addr, port=27015):
self.game, self.ip, self.port = game, addr, port
@brandonfl
brandonfl / killAllBuilds.groovy
Created October 10, 2019 12:22
Kill all build and remove queued ones
import java.util.ArrayList;
import hudson.model.*;
def q = Jenkins.instance.queue
for (queued in Jenkins.instance.queue.items) {
q.cancel(queued.task)
}
for (job in Jenkins.instance.items) {
stopJobs(job)