jjb: use urcu master targeting ust master
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 6 Dec 2021 20:35:03 +0000 (15:35 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 7 Dec 2021 18:47:57 +0000 (13:47 -0500)
Normally we would want to restrict ourselves to the urcu stable release
here but currently lttng-tools master requires urcu master due to C++.

So when targeting master default to using urcu master otherwise fall
back to the one define in the jjb job definition.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: Ib5173b406a0a9c57ac409d5b60ea5073ebdd55de

jobs/lttng-ust.yaml

index de4e753492082face50b2ba54c19817180f1c7b9..742d44e41937fa11a069ff2e8492822a047e0d1d 100644 (file)
          name: build
          values: '{obj:build}'
 
+- lttng-ust_build_axes_gerrit_lttng-tools: &lttng-ust_build_axes_gerrit_lttng-tools
+    name: 'lttng-ust_build_axes_gerrit_lttng-tools'
+    project-type: matrix
+    node: 'master' # Applies only to matrix flyweight task
+    execution-strategy:
+      combination-filter: '{filter}'
+    axes:
+      - axis:
+         type: slave
+         name: arch
+         values: '{obj:arch}'
+      - axis:
+         type: user-defined
+         name: conf
+         values: '{obj:conf}'
+      - axis:
+         type: user-defined
+         name: build
+         values: '{obj:build}'
+
 - lttng-ust_build_builders_defaults: &lttng-ust_build_builders_defaults
     name: 'lttng-ust_build_builders_defaults'
     builders:
 - lttng-ust_build_builders_gerrit_lttng-tools: &lttng-ust_build_builders_gerrit_lttng-tools
     name: 'lttng-ust_build_builders_gerrit_lttng-tools'
     builders:
+      - conditional-step:
+          condition-kind: strings-match
+          condition-string1: '$GERRIT_BRANCH'
+          condition-string2: master
+          on-evaluation-failure: run
+          steps:
+            - inject:
+                properties-content: liburcu_version=master
+      - conditional-step:
+          condition-kind: not
+          on-evaluation-failure: run
+          condition-operand:
+              condition-kind: strings-match
+              condition-string1: '$GERRIT_BRANCH'
+              condition-string2: master
+          steps:
+            - inject:
+                 properties-content: 'liburcu_version={liburcu_version}'
+
       - conditional-step:
           condition-kind: regex-match
           label: '$conf'
                 - branch-compare-type: 'ANT'
                   branch-pattern: '**'
 
-    <<: *lttng-ust_build_axes_defaults
+    <<: *lttng-ust_build_axes_gerrit_lttng-tools
     <<: *lttng-ust_build_builders_gerrit_lttng-tools
 
     properties:
           arch: !!python/tuple [amd64]
           build: !!python/tuple [std, oot, dist, oot-dist]
           conf: !!python/tuple [std, agents]
-          liburcu_version: !!python/tuple [stable-0.13]
+          liburcu_version: 'stable-0.13'
           filter: ''
           babeltrace_version: stable-2.0
 
This page took 0.024762 seconds and 4 git commands to generate.