]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-pipeline: Improve podman cleanup 2428/head
authorZack Cerza <zack@cerza.org>
Thu, 21 Aug 2025 17:02:12 +0000 (11:02 -0600)
committerZack Cerza <zack@cerza.org>
Thu, 21 Aug 2025 18:24:08 +0000 (12:24 -0600)
We're seeing a lot of instances of jobs failing to start due to left-over files
from the containerized build. When calling chown, reset the group as well. Also,
mention some details about the build to make log analysis easier.

Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-dev-pipeline/build/Jenkinsfile

index 1e8690501bd824019061d34189af1a1107d7bae2..196be2c181b5979d33f9ec15c038db3ebb4d37fd 100644 (file)
@@ -562,11 +562,6 @@ pipeline {
               }
             }
             post {
-              always {
-                script {
-                  sh 'podman unshare chown -R 0 $WORKSPACE/dist/ceph'
-                }
-              }
               success {
                 script {
                   def os = get_os_info(env.DIST)
@@ -610,9 +605,16 @@ pipeline {
           }
         }
         post {
+          success {
+            sh 'echo success: $DIST $ARCH $FLAVOR'
+          }
+          unsuccessful {
+            sh 'echo failure: $DIST $ARCH $FLAVOR'
+          }
           always {
             script {
-              sh 'podman unshare chown -R 0 $WORKSPACE/dist/ceph'
+              sh 'hostname'
+              sh 'podman unshare chown -R 0:0 ${WORKSPACE}/'
             }
           }
         }