From bb14f661fb7ae779186098eeb56b6dfb33934cad Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 30 Apr 2025 13:21:17 -0600 Subject: [PATCH] ceph-dev-pipeline: chown without sudo And also at the very end of the job. Signed-off-by: Zack Cerza --- ceph-dev-pipeline/build/Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ceph-dev-pipeline/build/Jenkinsfile b/ceph-dev-pipeline/build/Jenkinsfile index a23c0783..ea8917e7 100644 --- a/ceph-dev-pipeline/build/Jenkinsfile +++ b/ceph-dev-pipeline/build/Jenkinsfile @@ -489,8 +489,7 @@ pipeline { post { always { script { - // Jenkins does not use sudo to wipe the workspace, so fix the owner before we finish - sh 'sudo chown -R $USER $WORKSPACE/dist/ceph' + sh 'podman unshare chown -R 0 $WORKSPACE/dist/ceph' } } success { -- 2.47.3