Stop builds killing each other on the same slave

This commit is contained in:
Dan Hawkins 2018-09-17 09:21:27 +01:00
commit fc8bf281ae

View file

@ -7,11 +7,11 @@ def doKillLeftovers() {
# Don't return an error if the processes don't exist
USER=`whoami`
ps aux | grep "eclipse"
pkill -U "${USER}" -9 eclipse || true
# pkill -U "${USER}" -9 eclipse || true
ps aux | grep "make"
pkill -U "${USER}" -9 make || true
# pkill -U "${USER}" -9 make || true
ps aux | grep "arm-linux"
pkill -U "${USER}" -9 ".*arm-linux.*" || true
# pkill -U "${USER}" -9 ".*arm-linux.*" || true
"""
}
}