aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprepare-board.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/prepare-board.sh b/prepare-board.sh
index 358c88a..f2c7d21 100755
--- a/prepare-board.sh
+++ b/prepare-board.sh
@@ -477,9 +477,24 @@ configure_docker()
fi
fi
+ local cnt_name
for cnt in $(docker ps -q); do
docker stop $cnt
- echo $cnt >> "$restore_file"
+ cnt_name=$(docker inspect -f "{{.Name}}" $cnt)
+ if [ -f "/home/tcwg-buildslave/jenkins/$cnt_name.secret" ]; then
+ # Do not restart jenkins node containers after benchmarking.
+ # Restarting them without grabbing the board lock will
+ # give pending jobs only a few seconds to execute before
+ # the next benchmarking job grabs the board and stops
+ # the container.
+ # We have a dedicated job -- tcwg-update-bmk-containers --
+ # which starts jenkins containers on benchmarking boards
+ # and waits for all pending jobs to finish before releasing
+ # the board back to benchmarking.
+ :
+ else
+ echo $cnt >> "$restore_file"
+ fi
done
elif [ "$op" = "stop_board" ]; then
for cnt in $(docker ps -q -f status=exited); do