]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-pipeline: chown without sudo
authorZack Cerza <zack@cerza.org>
Wed, 30 Apr 2025 19:21:17 +0000 (13:21 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 7 May 2025 23:28:45 +0000 (17:28 -0600)
And also at the very end of the job.

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

index a23c0783673eb2cbe28524a335d5a2357a65284d..ea8917e73b1abb5cac7b7747c37d145a7a346a37 100644 (file)
@@ -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 {