]> review.fuel-infra Code Review - tools/sustaining.git/commitdiff
Trigger reporter conditionnaly 89/41289/3
authorVladimir Khlyunev <vkhlyunev@mirantis.com>
Mon, 6 May 2019 21:18:34 +0000 (01:18 +0400)
committerVladimir Khlyunev <vkhlyunev@mirantis.com>
Tue, 7 May 2019 07:44:55 +0000 (11:44 +0400)
Change-Id: I19a187d71e2f365b786e9584411c7373888ebf7b

maintenance-ci/mos/jobs/9.x.swarm.runner.yaml
maintenance-ci/mos/templates/swarm-test.yaml

index 9461eaa8fad5d84acda489ff56af314badf0e024..8dbe3515beb887008abb8b8f483faff3ba4d51a9 100644 (file)
         name: CLEANUP_SWARM
         default: true
         description: "Wipe jenkins swarm after tests?"
+    - bool: # this one taken away from systest-params macro because we want
+        # different default values for runner job and test jobs
+        name: RUN_REPORTER_AFTER_JOB
+        default: true
+        description: "Report results?"
     - 9x-systest-params
     - mos-jenkins-swarm-params
 
index 548a4abedaee11b10871d3f1c874955bcf9a9a96..be83b7be3dfb9fef32f1e6b77274212af787e820 100644 (file)
         name: ENV_NAME_SUFFIX
         default: "{swarm-test/env-name-suffix}"
         description: "Suffix to add to ENV_NAME"
+    - bool: # this one taken away from systest-params macro because we want
+            # different default values for runner job and test jobs
+        name: RUN_REPORTER_AFTER_JOB
+        default: false
+        description: "Report results?"
     - 9x-systest-params
     - text:
         name: EXTRA_OPTS
         regexp: "'Description string: (.*)'"
         regexp-for-failed: "'Description string: (.*)'"
 
-    - trigger-parameterized-builds:
-        - project: '9.x.swarm.test-reports'
-          condition: FAILED_OR_BETTER
-          trigger-with-no-params: true
+    - conditional-publisher:
+      - condition-kind: boolean-expression
+        condition-expression: $RUN_REPORTER_AFTER_JOB
+        action:
+        - trigger-parameterized-builds:
+          - project: '9.x.swarm.test-reports'
+            condition: FAILED_OR_BETTER
+            trigger-with-no-params: true