From c43708dca962569367341b4a245134fe579f1210 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Thu, 21 Aug 2025 11:02:12 -0600 Subject: [PATCH] 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 --- ceph-dev-pipeline/build/Jenkinsfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ceph-dev-pipeline/build/Jenkinsfile b/ceph-dev-pipeline/build/Jenkinsfile index 1e8690501..196be2c18 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}/' } } } -- 2.47.3