Signed-off-by: Nizamudeen A <nia@redhat.com>
--- /dev/null
+#!/usr/bin/env bash
+set +x
+echo "Starting cleanup..."
+kcli delete plan -y ceph || true
+kcli delete network ceph-dashboard -y
+kcli delete pool ceph-dashboard -y
+sudo rm -rf ${HOME}/.kcli
+docker container prune -f
+echo "Cleanup completed."
shallow-clone: true
wipe-workspace: true
+ - git:
+ url: https://github.com/ceph/ceph-build.git
+ branches:
+ - main
+ basedir: ceph-build
+
builders:
- shell:
!include-raw:
- junit:
results: 'src/pybind/mgr/dashboard/frontend/cypress/reports/results-*.xml'
allow-empty: true
+
+ - postbuildscript:
+ builders:
+ - role: SLAVE
+ build-on:
+ - SUCCESS
+ - UNSTABLE
+ - FAILURE
+ - ABORTED
+ build-steps:
+ - shell: "${WORKSPACE}/ceph-build/ceph-dashboard-cephadm-e2e/build/cleanup"
KCLI_CONFIG_DIR="${HOME}/.kcli"
mkdir -p ${KCLI_CONFIG_DIR}
if [[ ! -f "${KCLI_CONFIG_DIR}/id_rsa" ]]; then
- ssh-keygen -t rsa -q -f "${KCLI_CONFIG_DIR}/id_rsa" -N ""
+ sudo ssh-keygen -t rsa -q -f "${KCLI_CONFIG_DIR}/id_rsa" -N "" <<< y
fi
: ${KCLI_CONTAINER_IMAGE:='quay.io/karmab/kcli:2543a61'}