We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b6144e commit 9a9b7e7Copy full SHA for 9a9b7e7
1 file changed
hooks/pre-exit
@@ -11,14 +11,18 @@ DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
11
# remove build override files
12
rm -f "docker-compose.buildkite-${BUILDKITE_BUILD_NUMBER}-override.yml"
13
14
+FAILURES=0
15
+
16
# clean up resources after a run command. we do this here so that it will
17
# run after a job is cancelled
18
if [[ -n "$(plugin_read_list RUN)" ]] && [[ "$(plugin_read_config CLEANUP "true")" == "true" ]]; then
19
# shellcheck source=lib/run.bash
20
. "$DIR/../lib/run.bash"
21
22
echo "~~~ :docker: Cleaning up after docker-compose" >&2
- compose_cleanup
23
+ if ! compose_cleanup; then
24
+ FAILURES="$?"
25
+ fi
26
fi
27
28
# clean up builder instances if specified
0 commit comments