]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: move cephadm e2e cleanup to jenkins job config 52355/head
authorNizamudeen A <nia@redhat.com>
Fri, 7 Jul 2023 10:46:00 +0000 (16:16 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 7 Jul 2023 10:47:35 +0000 (16:17 +0530)
Follows: https://github.com/ceph/ceph-build/pull/2145

Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh

index c8f9c07a050c6d8826abeb453f797ba4a8576e01..65cb78a45a063b9641aece4e71c4623a7f466790 100755 (executable)
@@ -2,19 +2,6 @@
 
 set -eEx
 
-cleanup() {
-    set +x
-    if [[ -n "$JENKINS_HOME" ]]; then
-        echo "Starting cleanup..."
-        kcli delete plan -y ceph || true
-        kcli delete network ceph-dashboard -y
-        kcli delete pool ceph-dashboard -y
-        rm -rf ${HOME}/.kcli
-        docker container prune -f
-        echo "Cleanup completed."
-    fi
-}
-
 on_error() {
     set +x
     if [ "$1" != "0" ]; then
@@ -41,7 +28,6 @@ on_error() {
 }
 
 trap 'on_error $? $LINENO' ERR
-trap 'cleanup $? $LINENO' EXIT
 
 sed -i '/ceph-node-/d' $HOME/.ssh/known_hosts || true