Fix: YAML does not support object merging or array merging for anchor
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 12 Dec 2017 23:29:58 +0000 (18:29 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 12 Dec 2017 23:37:50 +0000 (18:37 -0500)
Publisher anchors do not behave as expected. They overwrite each other
instead of merging the array values (irc notification, tap parsing, etc.)

Yaml does not support array merging via anchor [1].

[1] https://stackoverflow.com/questions/24090177/how-to-merge-yaml-arrays/30770740#30770740

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
jobs/babeltrace.yaml
jobs/lttng-tools.yaml

index c650db589d4b7435ff5cdc6de45befd324d3986e..fe2e450cba6332f085d6ae3e83f9db7edc5039cd 100644 (file)
 - babeltrace_build_publishers_prod: &babeltrace_build_publishers_prod
     name: 'babeltrace_build_publishers_prod'
     publishers:
+      - tap:
+          results: 'tap/**/*.log'
+          failed-tests-mark-build-as-failure: true
+          todo-is-failure: false
+      - warnings:
+          console-log-parsers:
+            - 'GNU Make + GNU C Compiler (gcc)'
+          total-thresholds:
+            unstable:
+              total-all: 0
+              total-high: 0
+              total-normal: 0
+              total-low: 0
       - archive:
           artifacts: 'build/**'
           allow-empty: false
 
     <<: *babeltrace_build_axes_defaults
     <<: *babeltrace_build_builders_defaults
-    <<: *babeltrace_build_publishers_defaults
     <<: *babeltrace_build_publishers_prod
 
 - job-template:
 
     <<: *babeltrace_build_axes_defaults
     <<: *babeltrace_build_builders_win
-    <<: *babeltrace_build_publishers_defaults
     <<: *babeltrace_build_publishers_prod
 
 - job-template:
index a70ec9405b40bbb509e2329499ff3c13ba33825f..1d242c8a352c772ea6684aa4dbcdd0463450c57b 100644 (file)
 - lttng-tools_build_publishers_prod: &lttng-tools_build_publishers_prod
     name: 'lttng-tools_build_publishers_prod'
     publishers:
+      - tap:
+          results: 'tap/**/*.tap'
+          failed-tests-mark-build-as-failure: true
+          todo-is-failure: false
+      - warnings:
+          console-log-parsers:
+            - 'GNU Make + GNU C Compiler (gcc)'
+          total-thresholds:
+            unstable:
+              total-all: 0
+              total-high: 0
+              total-normal: 0
+              total-low: 0
+      - workspace-cleanup:
+          clean-if:
+            - failure: false
       - archive:
           artifacts: 'build/**'
           allow-empty: false
 
     <<: *lttng-tools_build_axes_defaults
     <<: *lttng-tools_build_builders_defaults
-    <<: *lttng-tools_build_publishers_defaults
     <<: *lttng-tools_build_publishers_prod
 
     triggers:
 
     <<: *lttng-tools_build_axes_defaults
     <<: *lttng-tools_build_builders_win
-    <<: *lttng-tools_build_publishers_defaults
     <<: *lttng-tools_build_publishers_prod
 
 - job-template:
This page took 0.025358 seconds and 4 git commands to generate.