From: Zack Cerza Date: Thu, 21 Aug 2025 17:02:12 +0000 (-0600) Subject: ceph-dev-pipeline: Improve podman cleanup X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c43708dca962569367341b4a245134fe579f1210;p=ceph-build.git ceph-dev-pipeline: Improve podman cleanup 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 --- diff --git a/ceph-dev-pipeline/build/Jenkinsfile b/ceph-dev-pipeline/build/Jenkinsfile index 1e869050..196be2c1 100644 --- a/ceph-dev-pipeline/build/Jenkinsfile +++ b/ceph-dev-pipeline/build/Jenkinsfile @@ -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}/' } } }