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

Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit a407f0b7834585c087001059d6cec613e524538b)

src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh

index e86cec82bc9cef02d30c377fa9ea30b5391d6e35..0d6e8a5dd53af5975b7911559cb6801d39310d8b 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