commit
78e4b54fe2
|
@ -130,7 +130,7 @@ jobs:
|
|||
run: |
|
||||
minikube_binaries/minikube-linux-arm64 delete --all --purge || true
|
||||
docker kill $(docker ps -aq) || true
|
||||
docker system prune --volumes --force || true
|
||||
docker system prune -a --volumes -f || true
|
||||
|
||||
- name: Run Integration Test
|
||||
continue-on-error: false
|
||||
|
|
|
@ -42,7 +42,7 @@ check_running_job
|
|||
|
||||
echo "cleanup docker..."
|
||||
docker kill $(docker ps -aq) >/dev/null 2>&1 || true
|
||||
docker system prune --volumes --force || true
|
||||
docker system prune -a --volumes -f || true
|
||||
|
||||
echo "rebooting..."
|
||||
sudo reboot
|
||||
|
|
|
@ -50,7 +50,7 @@ If ($lastexitcode -gt 0) {
|
|||
$json = "{`"state`": `"failure`", `"description`": `"Jenkins: docker failed to start`", `"target_url`": `"https://storage.googleapis.com/$gcs_bucket/Hyper-V_Windows.txt`", `"context`": `"$env:JOB_NAME`"}"
|
||||
|
||||
Write-GithubStatus -JsonBody $json
|
||||
docker system prune --all --force
|
||||
docker system prune -a --volumes -f
|
||||
Exit $lastexitcode
|
||||
}
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ else
|
|||
fi
|
||||
|
||||
# let's just clean all docker artifacts up
|
||||
docker system prune --force --volumes || true
|
||||
docker system prune -a --volumes -f || true
|
||||
docker system df || true
|
||||
|
||||
echo ">> Starting at $(date)"
|
||||
|
|
|
@ -55,7 +55,7 @@ function cleanup() {
|
|||
# clean docker left overs
|
||||
echo -e "\ncleanup docker..."
|
||||
docker kill $(docker ps -aq) >/dev/null 2>&1 || true
|
||||
docker system prune --volumes --force || true
|
||||
docker system prune -a --volumes -f || true
|
||||
|
||||
# clean KVM left overs
|
||||
echo -e "\ncleanup kvm..."
|
||||
|
@ -117,7 +117,8 @@ function cleanup() {
|
|||
}
|
||||
|
||||
# Give 15m for Linux-specific cleanup
|
||||
timeout 15m cleanup
|
||||
export -f cleanup
|
||||
timeout 15m bash -c cleanup
|
||||
|
||||
# disable localkube, kubelet
|
||||
systemctl list-unit-files --state=enabled \
|
||||
|
|
Loading…
Reference in New Issue