From 9b5edf1801d6eef55a90dfbaf0ba36f28bf1c2c7 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Tue, 2 Mar 2021 13:08:49 -0500 Subject: [PATCH] ceph-dev-new-build: cleanup root-owned mingw64 pbuilder environment Signed-off-by: Jason Dillaman --- ceph-dev-new-build/build/build_mingw | 3 +++ ceph-dev-new-build/config/definitions/ceph-dev-new-build.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ceph-dev-new-build/build/build_mingw b/ceph-dev-new-build/build/build_mingw index 23b968032..b26c02553 100644 --- a/ceph-dev-new-build/build/build_mingw +++ b/ceph-dev-new-build/build/build_mingw @@ -54,5 +54,8 @@ EOF echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_repo_endpoint}/ fi +# pbuilder will leave root-owned files in shared workspaces +sudo chown -R jenkins-build ${WORKSPACE}/dist + # update shaman with the completed build status update_build_status "completed" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH diff --git a/ceph-dev-new-build/config/definitions/ceph-dev-new-build.yml b/ceph-dev-new-build/config/definitions/ceph-dev-new-build.yml index 723e9895f..f534140a4 100644 --- a/ceph-dev-new-build/config/definitions/ceph-dev-new-build.yml +++ b/ceph-dev-new-build/config/definitions/ceph-dev-new-build.yml @@ -71,7 +71,7 @@ builders: - shell: | echo "Cleaning up top-level workarea (shared among workspaces)" - rm -rf dist + sudo rm -rf dist rm -rf venv rm -rf release - copyartifact: -- 2.47.3