]> review.fuel-infra Code Review - tools/sustaining.git/commitdiff
Add retry after failure to tempest job 14/41414/1
authorVladimir Khlyunev <vkhlyunev@mirantis.com>
Thu, 8 Aug 2019 09:08:27 +0000 (13:08 +0400)
committerVladimir Khlyunev <vkhlyunev@mirantis.com>
Thu, 8 Aug 2019 09:08:27 +0000 (13:08 +0400)
Change-Id: I7e424bac0aed45b53f209a0924c3e1748b216707

maintenance-ci/mos/templates/tempest.multijob.yaml

index b17edd91f9b768209b0ba5ee3e1f28dd14345f9f..df4ff884c6d526c388f36730808debd4f82562bc 100644 (file)
     - heavy-job:
         weight: 3
     parameters:
+    - bool:
+        name: RERUN_AFTER_FAILURE
+        default: false
+        description: "Reschedule job after failure?"
     - node:
         name: NODE_LABELS
         default-slaves:
             MILESTONE=9.2
             SPECIFICATION={specification}
             USE_TEMPLATE=true
+    publishers:
+    # retry if job failed
+    - conditional-publisher:
+      - condition-kind: boolean-expression
+        condition-expression: $RERUN_AFTER_FAILURE
+        action:
+        - naginator:
+            max-failed-builds: 2
+            fixed-delay: 600