ci(buildkite): prevent pre-exit hook on setup steps (#3076)
* ci(buildkite): prevent pre-exit hook on setup steps Occasionally due to node issues the pre-exit hook for docker image cleanups can fail, causing the otherwise successful job to bail out. This change ignores the cleanup on setup steps.pull/3064/head
parent
160a087af5
commit
8ba586e955
|
@ -2,7 +2,8 @@
|
|||
|
||||
set +u
|
||||
|
||||
if [[ "${BUILDKITE_AGENT_META_DATA_CLEANBUILD}" != "false" ]]; then
|
||||
if [[ ! "${BUILDKITE_COMMAND}" =~ "buildkite-agent pipeline upload" ]] && \
|
||||
[[ "${BUILDKITE_AGENT_META_DATA_CLEANBUILD}" != "false" ]]; then
|
||||
echo "--- :docker: Clean environment"
|
||||
docker system prune -af --volumes
|
||||
fi
|
Loading…
Reference in New Issue