Skip to content

Commit 6218f7e

Browse files
authored
Merge pull request #299 from xibz/buildkite-hook
Add pre-exit hook to cleanup after job
2 parents f088468 + 219b81b commit 6218f7e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.buildkite/hooks/pre-exit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
set -eu
3+
4+
make -C "$BUILDKITE_BUILD_CHECKOUT_PATH" clean

.buildkite/pipeline.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,3 @@ steps:
8686
command: 'make -C examples integ-test'
8787
concurrency: 1
8888
concurrency_group: 'loop-device test'
89-
90-
- wait: ~
91-
continue_on_failure: true
92-
93-
- label: ":wastebasket: cleanup"
94-
agents:
95-
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE:-default}"
96-
command: 'make clean'

0 commit comments

Comments
 (0)