]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pr-api: Clean dpkg db on job abort 1677/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 5 Oct 2020 16:33:55 +0000 (12:33 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 5 Oct 2020 16:33:55 +0000 (12:33 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-pr-api/config/definitions/ceph-pr-api.yml

index a9fa5b357e82ae2233a5d1e4e0e0dab6ba54d985..5712479f112b71e15f84afd5409970fe30b4a64c 100644 (file)
             - ../../../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