Skip to content

Commit

Permalink
Delete previus assisted-installer deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
ebattat committed Feb 18, 2024
1 parent 25b8021 commit 80f86c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jenkins/PerfCI_OpenShift_Deployment/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ pipeline {
echo "Cleaning Jenkins workspace"
deleteDir()

// Delete assisted installer previous deployments
sh "curl http://${PROVISION_IP}:8090/api/assisted-install/v2/clusters | jq '.[].id' -r | xargs -I % curl -X DELETE http://${PROVISION_IP}:8090/api/assisted-install/v2/clusters/%"

// Delete benchmark-runner images
sh '''
if [[ "$(sudo podman images -q quay.io/ebattat/benchmark-runner 2> /dev/null)" != "" ]]; then
Expand Down

0 comments on commit 80f86c9

Please sign in to comment.