]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pull-requests: Add cleanup script 2470/head
authorZack Cerza <zack@cerza.org>
Wed, 15 Oct 2025 20:01:51 +0000 (14:01 -0600)
committerDavid Galloway <david.galloway@ibm.com>
Wed, 29 Oct 2025 16:36:56 +0000 (12:36 -0400)
We mostly just need to correct permissions that podman may have changed, so the
workspace can be deleted by the next job.

Signed-off-by: Zack Cerza <zack@cerza.org>
ceph-pull-requests/build/cleanup [new file with mode: 0755]
ceph-pull-requests/config/definitions/ceph-pull-requests.yml

diff --git a/ceph-pull-requests/build/cleanup b/ceph-pull-requests/build/cleanup
new file mode 100755 (executable)
index 0000000..d320c12
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash -x
+
+podman unshare chown -R 0:0 "${WORKSPACE}"
index d359a1b5709a8a1b9f8dce95d22a4a92f9e69bd0..f102e2bed6321d4a67adf23c80c90eb9dcdeb60a 100644 (file)
                 - shell:
                     !include-raw-verbatim:
                       - ../../build/kill-tests
+      - postbuildscript:
+          builders:
+            - role: SLAVE
+              build-on:
+                - SUCCESS
+                - UNSTABLE
+                - FAILURE
+                - ABORTED
+              build-steps:
+                - shell: !include-raw-verbatim:
+                    - ../../build/cleanup
+
       - xunit:
           thresholds:
             - failed: