From: David Galloway Date: Mon, 5 Oct 2020 16:33:55 +0000 (-0400) Subject: ceph-pr-api: Clean dpkg db on job abort X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c5d6af699325bc23c20deb36943254f1ee778262;p=ceph-build.git ceph-pr-api: Clean dpkg db on job abort Signed-off-by: David Galloway --- diff --git a/ceph-pr-api/config/definitions/ceph-pr-api.yml b/ceph-pr-api/config/definitions/ceph-pr-api.yml index a9fa5b35..5712479f 100644 --- a/ceph-pr-api/config/definitions/ceph-pr-api.yml +++ b/ceph-pr-api/config/definitions/ceph-pr-api.yml @@ -69,5 +69,17 @@ - ../../../scripts/dashboard/install-backend-api-test-deps.sh - shell: "cd src/pybind/mgr/dashboard; timeout 7200 ./run-backend-api-tests.sh" + # This job seems to get aborted more often than others. Multiple times in the past week, + # it's gotten aborted during an apt transaction which leaves a dirty dpkg DB. + # This will make sure that gets cleaned up before the next job runs (and would inevitably fail). + publishers: + - postbuildscript: + builders: + - role: SLAVE + build-on: + - ABORTED + build-steps: + - shell: "sudo dpkg --configure -a" + wrappers: - ansicolor