From: Zack Cerza Date: Wed, 15 Oct 2025 20:01:51 +0000 (-0600) Subject: ceph-pull-requests: Add cleanup script X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4952de6fe4c80400e97f67e5d0a66ff2d7cfbd0e;p=ceph-build.git ceph-pull-requests: Add cleanup script 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 --- diff --git a/ceph-pull-requests/build/cleanup b/ceph-pull-requests/build/cleanup new file mode 100755 index 000000000..d320c1259 --- /dev/null +++ b/ceph-pull-requests/build/cleanup @@ -0,0 +1,3 @@ +#!/bin/bash -x + +podman unshare chown -R 0:0 "${WORKSPACE}" diff --git a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml index d359a1b57..f102e2bed 100644 --- a/ceph-pull-requests/config/definitions/ceph-pull-requests.yml +++ b/ceph-pull-requests/config/definitions/ceph-pull-requests.yml @@ -91,6 +91,18 @@ - 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: