diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-04-12 13:28:05 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-04-12 13:28:05 +0200 |
commit | 1dbf68ddc8353aa90bd05aeafdee762ae3098795 (patch) | |
tree | 8d77b01fb11019568f6a3fce511ce27c150b08e4 | |
parent | 67ebc3b2af90758ab9ee2575e7b7e4bc76a7cb8a (diff) | |
download | jenkins.debian.net-1dbf68ddc8353aa90bd05aeafdee762ae3098795.tar.xz |
reproducible builds: make script for killing nodes more bloody
-rwxr-xr-x | bin/reproducible_cleanup_nodes.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/bin/reproducible_cleanup_nodes.sh b/bin/reproducible_cleanup_nodes.sh index 8553128e..355feaf3 100755 --- a/bin/reproducible_cleanup_nodes.sh +++ b/bin/reproducible_cleanup_nodes.sh @@ -40,8 +40,16 @@ for NODE in $BUILD_NODES ; do # call jenkins_master_wrapper.sh so we only need to track different ssh ports in one place # jenkins_master_wrapper.sh needs NODE_NAME and JOB_NAME export NODE_NAME=$NODE - echo "$(date -u) - Killing build processes on $NODE now:" - /srv/jenkins/bin/jenkins_master_wrapper.sh /srv/jenkins/bin/reproducible_slay.sh || true - echo "$(date -u) - done killing processes on $NODE." + echo "$(date -u) - Killing build processes on $NODE in background now." + /srv/jenkins/bin/jenkins_master_wrapper.sh /srv/jenkins/bin/reproducible_slay.sh & done +sleep 15 +echo "killing all ssh and sleep processes now. (press enter || ctrl-c)" +read +killall ssh +killall sleep +killall -9 ssh +killall -9 sleep +echo "$(date -u) - slaughtering done. Happy rebooting or whatever you plan to do." + |