From 4952de6fe4c80400e97f67e5d0a66ff2d7cfbd0e Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 15 Oct 2025 14:01:51 -0600 Subject: [PATCH] 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 --- ceph-pull-requests/build/cleanup | 3 +++ .../config/definitions/ceph-pull-requests.yml | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 ceph-pull-requests/build/cleanup 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: -- 2.47.3