Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions bot.kernelci.org/reboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set -e
echo "Cleaning big clusters"

for ctx in \
"aks-kbuild-big-1" \
"gke_android-kernelci-external_europe-west1-d_kci-eu-west1" \
"gke_android-kernelci-external_europe-west4-c_kci-eu-west4" \
; do
Expand All @@ -19,9 +18,6 @@ done
echo "Cleaning medium clusters"

for ctx in \
"aks-kbuild-medium-1" \
"aks-kbuild-medium-2" \
"aks-kbuild-medium-3" \
"gke_android-kernelci-external_us-central1-c_kci-us-central1" \
"gke_android-kernelci-external_us-east4-c_kci-big-us-east4" \
"gke_android-kernelci-external_us-west1-a_kci-us-west1" \
Expand All @@ -33,9 +29,14 @@ for ctx in \
delete pod --field-selector=status.phase!=Running'"
done

# Jenkins workspace cleanup
WORKSPACE_PATH="/data/workspace/bot.kernelci.org/"
host="kernelci-prod-jenkins-runner-3.westus3.cloudapp.azure.com"
workspace="build-trigger"
echo "[$host] Deleting $WORKSPACE_PATH/$workspace/workspace/*"
ssh $host sudo "sh -c 'rm -rf $WORKSPACE_PATH/$workspace/workspace/*'"

for host in \
"kernelci-prod-jenkins-runner-1.westus3.cloudapp.azure.com" \
"kernelci-prod-jenkins-runner-2.westus3.cloudapp.azure.com" \
"kernelci-prod-jenkins-runner-3.westus3.cloudapp.azure.com" \
; do
echo "[$host]"
Expand Down