summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_slay.sh
blob: a6fceae2147ee4cb6ee0029affc4ac2da8bc110b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Copyright 2015 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2

set +e

# usually called by /srv/jenkins/bin/reproducible_cleanup_nodes.sh
# this script just kills everyone…
sudo killall timeout	# all builds are done using timeout
sudo slay 1111
sudo slay 2222
pgrep -u 1111,2222
# only slay jenkins on the build nodes…
if [ "$HOSTNAME" != "jenkins" ] ; then
	sudo slay jenkins
fi