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

# Copyright 2015-2016 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