ensure cleaning all of docker up
parent
3b9ac640b7
commit
a8b69283f7
|
@ -130,7 +130,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
minikube_binaries/minikube-linux-arm64 delete --all --purge || true
|
minikube_binaries/minikube-linux-arm64 delete --all --purge || true
|
||||||
docker kill $(docker ps -aq) || true
|
docker kill $(docker ps -aq) || true
|
||||||
docker system prune --volumes --force || true
|
docker system prune -a --volumes -f || true
|
||||||
|
|
||||||
- name: Run Integration Test
|
- name: Run Integration Test
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
|
|
|
@ -42,7 +42,7 @@ check_running_job
|
||||||
|
|
||||||
echo "cleanup docker..."
|
echo "cleanup docker..."
|
||||||
docker kill $(docker ps -aq) >/dev/null 2>&1 || true
|
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..."
|
echo "rebooting..."
|
||||||
sudo reboot
|
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`"}"
|
$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
|
Write-GithubStatus -JsonBody $json
|
||||||
docker system prune --all --force
|
docker system prune -a --volumes -f
|
||||||
Exit $lastexitcode
|
Exit $lastexitcode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# let's just clean all docker artifacts up
|
# 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
|
docker system df || true
|
||||||
|
|
||||||
echo ">> Starting at $(date)"
|
echo ">> Starting at $(date)"
|
||||||
|
|
|
@ -55,7 +55,7 @@ function cleanup() {
|
||||||
# clean docker left overs
|
# clean docker left overs
|
||||||
echo -e "\ncleanup docker..."
|
echo -e "\ncleanup docker..."
|
||||||
docker kill $(docker ps -aq) >/dev/null 2>&1 || true
|
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
|
# clean KVM left overs
|
||||||
echo -e "\ncleanup kvm..."
|
echo -e "\ncleanup kvm..."
|
||||||
|
|
Loading…
Reference in New Issue