We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cac0443 commit a44a8f0Copy full SHA for a44a8f0
.buildkite/hooks/post-checkout
@@ -0,0 +1,17 @@
1
+# important: assumes that each agent runs a single job at a time
2
+
3
+# ignore errors
4
+set +e
5
6
+if [[ $BUILDKITE_AGENT_META_DATA_QUEUE == "pipeline-uploader" ]]; then
7
+ echo "Skipping on `pipeline-uploader` agents"
8
+ exit 0
9
+fi
10
11
+echo "Cleaning up unused docker containers"
12
+for id in $(docker ps --quiet); do
13
+ echo "Killing $id"
14
+ docker kill $id
15
+done
16
17
+docker system prune --all --volumes --force
0 commit comments